From 658b8473847a79e5ac927b2bb01a7bef21667ca3 Mon Sep 17 00:00:00 2001 From: yanghuatao Date: Mon, 28 Aug 2023 09:18:59 +0800 Subject: [PATCH] apps/rpsock_client: Fix rpsock_client.c [-Wformat=] warning Fix warning: CC: rpsock_client.c rpsock_client.c: In function 'rpsock_unsync_test': rpsock_client.c:203:30: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=] 203 | printf("client check fail total %d, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 204 | i %d, %08x, %08x\n", | ~~~~~~~~~~~~~~~~~~~ 205 | ALIGN_UP(total), i, intp[i], | ~~~~~~~ | | | uint32_t {aka long unsigned int} Signed-off-by: yanghuatao --- 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 e1f8bfd36..b35d60598 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, %08x, %08x\n", + i %d, %08" PRIx32 ", %08x\n", ALIGN_UP(total), i, intp[i], ALIGN_UP(total) / sizeof(uint32_t) + i); }