Skip to content

Commit

Permalink
Fix "%hhi" conversion for kvprintf()
Browse files Browse the repository at this point in the history
The signedness of "char" is implementation-dependent.
  • Loading branch information
sebhub committed Jun 13, 2024
1 parent a16cb87 commit d71ce25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/kern/subr_prf.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ reswitch: switch (ch = (u_char)*fmt++) {
else if (hflag)
num = (short)va_arg(ap, int);
else if (cflag)
num = (char)va_arg(ap, int);
num = (signed char)va_arg(ap, int);
else
num = va_arg(ap, int);
number:

Check warning on line 910 in sys/kern/subr_prf.c

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
Expand Down

0 comments on commit d71ce25

Please sign in to comment.