mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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 <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/73040 Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
ba6acffc69
commit
90286fe643
2
atavia.c
2
atavia.c
@ -166,7 +166,7 @@ static int atavia_init(const struct programmer_cfg *cfg)
|
||||
pci_write_long(dev, PCI_ROM_ADDRESS, (uint32_t)PCI_ROM_ADDRESS_MASK);
|
||||
default_delay(90);
|
||||
uint32_t base = pci_read_long(dev, PCI_ROM_ADDRESS);
|
||||
msg_pdbg2("BROM base=0x%08x\n", base);
|
||||
msg_pdbg2("BROM base=0x%08"PRIx32"\n", base);
|
||||
if ((base & PCI_ROM_ADDRESS_MASK) == 0) {
|
||||
msg_pwarn("Controller thinks there is no ROM attached.\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user