diff --git a/system/i2c/i2c_hexdump.c b/system/i2c/i2c_hexdump.c index ac3b14cc4..7206c1446 100644 --- a/system/i2c/i2c_hexdump.c +++ b/system/i2c/i2c_hexdump.c @@ -126,7 +126,7 @@ void i2ctool_hexdump(FILE *outstream, void *addr, int len) { /* print address */ - fprintf(outstream, "%08x ", p - (uint8_t *) addr); + fprintf(outstream, "%08tx ", p - (uint8_t *) addr); /* print one line of data */