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 <l...@openwrt.org>
---
 examples/blobmsg-example.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:
-- 
2.0.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to