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 <wangyongrong@xiaomi.com>
This commit is contained in:
parent
385f707382
commit
5f1de35936
@ -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, %08" PRIx32 ", %08x\n",
|
i %d, %08" PRIx32 ", %08zx\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…
x
Reference in New Issue
Block a user