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 <yanghuatao@xiaomi.com>
This commit is contained in:
parent
75c8580238
commit
658b847384
@ -201,7 +201,7 @@ static int rpsock_unsync_test(struct rpsock_arg_s *args)
|
|||||||
if (intp[i] != ALIGN_UP(total) / sizeof(uint32_t) + i)
|
if (intp[i] != ALIGN_UP(total) / sizeof(uint32_t) + i)
|
||||||
{
|
{
|
||||||
printf("client check fail total %d, \
|
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), i, intp[i],
|
||||||
ALIGN_UP(total) / sizeof(uint32_t) + i);
|
ALIGN_UP(total) / sizeof(uint32_t) + i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user