examples: use PRIu64 instead %lld when printing uint64_t values
Patch fixes build failure: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t’ [-Werror=format=] indent_printf(indent, "%lld\n", *(uint64_t *)data); Signed-off-by: Luka Perkov <luka@openwrt.org>
This commit is contained in:
parent
480b6c7da1
commit
db8e7060e0
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ static void dump_attr_data(void *data, int len, int type, int indent, int next_i
|
|||
indent_printf(indent, "%d\n", *(uint32_t *)data);
|
||||
break;
|
||||
case BLOBMSG_TYPE_INT64:
|
||||
indent_printf(indent, "%lld\n", *(uint64_t *)data);
|
||||
indent_printf(indent, "%"PRIu64"\n", *(uint64_t *)data);
|
||||
break;
|
||||
case BLOBMSG_TYPE_TABLE:
|
||||
case BLOBMSG_TYPE_ARRAY:
|
||||
|
|
Loading…
Reference in a new issue