Skip to content

Commit

Permalink
debug: make debug_hexdump also dump address
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Nov 1, 2024
1 parent 2f64a7c commit a9f956a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ void debug_hexdump(const void *vbuf, int size)
lineskip = true;
} else {
lineskip = false;
debugf("%04x ", i);
debugf("%08lx %04x ", (uint32_t)d, i);
for (int j=0;j<16;j++) {
if (i+j < size)
debugf("%02x ", d[j]);
Expand Down

0 comments on commit a9f956a

Please sign in to comment.