From 5f1de359364f33ede018f54ff5deff3819c9368c Mon Sep 17 00:00:00 2001 From: wangyongrong Date: Wed, 20 Dec 2023 17:38:42 +0800 Subject: [PATCH] rpsock_client.c: fix printf format warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rpsock_client.c:203:30: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] 203 | printf("client check fail total %d, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 204 | i %d, %08" PRIx32 ", %08x\n", | ~~~~~~~~~~ 205 | ALIGN_UP(total), i, intp[i], 206 | (ALIGN_UP(total) / sizeof(uint32_t) + i)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int Signed-off-by: wangyongrong --- examples/rpmsgsocket/rpsock_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rpmsgsocket/rpsock_client.c b/examples/rpmsgsocket/rpsock_client.c index b35d60598..9415dbffd 100644 --- a/examples/rpmsgsocket/rpsock_client.c +++ b/examples/rpmsgsocket/rpsock_client.c @@ -201,7 +201,7 @@ static int rpsock_unsync_test(struct rpsock_arg_s *args) if (intp[i] != ALIGN_UP(total) / sizeof(uint32_t) + i) { printf("client check fail total %d, \ - i %d, %08" PRIx32 ", %08x\n", + i %d, %08" PRIx32 ", %08zx\n", ALIGN_UP(total), i, intp[i], ALIGN_UP(total) / sizeof(uint32_t) + i); }