Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-07-03 14:28:24 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-07-03 14:53:13 +0400
commitdb8e7060e057d5794ed1604a45d5df75946d55cb (patch)
treeff12764e3b278fada869bd01c690aaacd12832c4 /examples
parent480b6c7da16e81ad7f358699028a08ef3b4249a1 (diff)
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>
Diffstat (limited to 'examples')
-rw-r--r--examples/blobmsg-example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c
index 01c0915..86501e2 100644
--- a/examples/blobmsg-example.c
+++ b/examples/blobmsg-example.c
@@ -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: