system/i2c/i2c_hexdump.c: Fix a printf format warning

This commit is contained in:
YAMAMOTO Takashi 2020-11-10 22:21:41 +09:00 committed by Xiang Xiao
parent dcfebf1cea
commit 6db2f25f69

View File

@ -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 */