mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +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
@ -46,7 +46,7 @@ static uint32_t satasii_wait_done(const uint8_t *bar)
|
||||
int i = 0;
|
||||
while ((ctrl_reg = pci_mmio_readl(bar)) & (1 << 25)) {
|
||||
if (++i > 10000) {
|
||||
msg_perr("%s: control register stuck at %08x, ignoring.\n",
|
||||
msg_perr("%s: control register stuck at %08"PRIx32", ignoring.\n",
|
||||
__func__, pci_mmio_readl(bar));
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user