Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
[utils] Fix debug print warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Gustafson <geoff@linux.intel.com>
  • Loading branch information
grgustaf authored and Jimmy Huang committed Jan 25, 2018
1 parent b902457 commit fdbe030
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zjs_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit fdbe030

Please sign in to comment.