Skip to content

Commit

Permalink
sys/net/gnrc: Fixed wrong PRIuSIZE format specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
fzi-haxel committed Jan 12, 2024
1 parent a6a6e31 commit 291c89f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ gnrc_pktsnip_t *gnrc_pktbuf_start_write(gnrc_pktsnip_t *pkt)
#ifdef MODULE_OD
static inline void _print_chunk(void *chunk, size_t size, int num)
{
printf("=========== chunk %3" PRIuSIZE " (%-10p size: %4u) ===========\n", num, chunk,
printf("=========== chunk %3i (%-10p size: %4" PRIuSIZE ") ===========\n", num, chunk,
size);
od_hex_dump(chunk, size, OD_WIDTH_DEFAULT);
}
Expand Down
2 changes: 1 addition & 1 deletion sys/net/gnrc/pktdump/gnrc_pktdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static void _dump(gnrc_pktsnip_t *pkt)
gnrc_pktsnip_t *snip = pkt;

while (snip != NULL) {
printf("~~ SNIP %2" PRIuSIZE " - size: %3u byte, type: ", snips,
printf("~~ SNIP %2i - size: %3" PRIuSIZE " byte, type: ", snips,
snip->size);
_dump_snip(snip);
++snips;
Expand Down

0 comments on commit 291c89f

Please sign in to comment.