Skip to content

Commit

Permalink
Use correct format string when printing int8
Browse files Browse the repository at this point in the history
Reviewed-by: Igor Kozhukhov <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes openzfs#9486
  • Loading branch information
mattmacy authored and tonyhutter committed Dec 27, 2019
1 parent ac67de2 commit d8cd6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libnvpair/libnvpair_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ nvlist_print_json(FILE *fp, nvlist_t *nvl)
for (i = 0; i < valsz; i++) {
if (i > 0)
FPRINTF(fp, ",");
FPRINTF(fp, "%hd", val[i]);
FPRINTF(fp, "%hhd", val[i]);
}
FPRINTF(fp, "]");
break;
Expand Down

0 comments on commit d8cd6a8

Please sign in to comment.