From 6db2f25f69e8d727fa88f6a2c4e9b16348af5c7b Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 10 Nov 2020 22:21:41 +0900 Subject: [PATCH] system/i2c/i2c_hexdump.c: Fix a printf format warning --- system/i2c/i2c_hexdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */