mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-11 21:20:12 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue