From 90286fe643bbc2493275a5280a26766784435dda Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Tue, 14 Feb 2023 16:50:38 +0100 Subject: printf: Use inttype.h macros for format strings DJGPP for compiling DOS has other sizes for the normal int types and therefore throwing errors when using %i %d or %x with uint32_t. Fix these warnings by using the macros created for it and provided in inttypes.h. Change-Id: Ia75b6df981ce60c891161fe553c7ceab8570178d Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/73040 Reviewed-by: Anastasia Klimchuk Tested-by: build bot (Jenkins) --- nicintel_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nicintel_eeprom.c') diff --git a/nicintel_eeprom.c b/nicintel_eeprom.c index 2c351da35..6a734b050 100644 --- a/nicintel_eeprom.c +++ b/nicintel_eeprom.c @@ -140,7 +140,7 @@ static int nicintel_ee_probe_82580(struct flashctx *flash) flash->chip->total_size = 32; break; default: - msg_cerr("Unsupported chip size 0x%x\n", tmp); + msg_cerr("Unsupported chip size 0x%"PRIx32"\n", tmp); return 0; } } -- cgit v1.2.3