From fdbe0304a19fdb6a06f1f87eb4344a492db4d627 Mon Sep 17 00:00:00 2001 From: Geoff Gustafson Date: Wed, 24 Jan 2018 13:58:39 -0800 Subject: [PATCH] [utils] Fix debug print warnings Signed-off-by: Geoff Gustafson --- src/zjs_util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/zjs_util.c b/src/zjs_util.c index cdcec5abe..ecf115bd7 100644 --- a/src/zjs_util.c +++ b/src/zjs_util.c @@ -337,7 +337,7 @@ char *zjs_alloc_from_jstring(jerry_value_t jstr, jerry_size_t *maxlen) if (maxlen) { if (*maxlen && *maxlen < len) { - DBG_PRINT("string limited to %u bytes\n", *maxlen); + DBG_PRINT("string limited to %u bytes\n", (unsigned int)*maxlen); buffer[*maxlen] = '\0'; } else { *maxlen = len; @@ -727,7 +727,8 @@ int zjs_validate_args(const char *expectations[], const jerry_length_t argc, } if (arg_index < argc) { - DBG_PRINT("API received %u unexpected arg(s)\n", argc - arg_index); + DBG_PRINT("API received %u unexpected arg(s)\n", + (unsigned int)(argc - arg_index)); } return opt_args; }