Skip to content

Commit 5f1de35

Browse files
wyr-7xiaoxiang781216
authored andcommitted
rpsock_client.c: fix printf format warning
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 <[email protected]>
1 parent 385f707 commit 5f1de35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rpmsgsocket/rpsock_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static int rpsock_unsync_test(struct rpsock_arg_s *args)
201201
if (intp[i] != ALIGN_UP(total) / sizeof(uint32_t) + i)
202202
{
203203
printf("client check fail total %d, \
204-
i %d, %08" PRIx32 ", %08x\n",
204+
i %d, %08" PRIx32 ", %08zx\n",
205205
ALIGN_UP(total), i, intp[i],
206206
ALIGN_UP(total) / sizeof(uint32_t) + i);
207207
}

0 commit comments

Comments
 (0)