aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libnvpair/libnvpair_json.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libnvpair/libnvpair_json.c')
-rw-r--r--lib/libnvpair/libnvpair_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libnvpair/libnvpair_json.c b/lib/libnvpair/libnvpair_json.c
index 0b403f1af..37a392391 100644
--- a/lib/libnvpair/libnvpair_json.c
+++ b/lib/libnvpair/libnvpair_json.c
@@ -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;