Skip to content

Commit 616a03d

Browse files
committed
Fix a compiler warning(error) for format mismatch.
Signed-off-by: Andrew G. Morgan <[email protected]>
1 parent a613b00 commit 616a03d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

progs/capsh.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ int main(int argc, char *argv[], char *envp[])
520520
if (set >= 0) {
521521
const char *b;
522522
b = binary(set); /* use verilog convention for binary string */
523-
printf("Securebits: 0%o/0x%x/%u'b%s\n", set, set, strlen(b), b);
523+
printf("Securebits: 0%o/0x%x/%u'b%s\n", set, set,
524+
(unsigned) strlen(b), b);
524525
printf(" secure-noroot: %s (%s)\n",
525526
(set & 1) ? "yes":"no",
526527
(set & 2) ? "locked":"unlocked");

0 commit comments

Comments
 (0)