diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2023-02-14 16:50:38 +0100 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2023-04-27 09:36:46 +0000 |
commit | 90286fe643bbc2493275a5280a26766784435dda (patch) | |
tree | 1e9f9923358e35699f21406f545870820b6b8dda /cli_classic.c | |
parent | ba6acffc69b679829bf46f3636b4f6c04bfa7729 (diff) | |
download | flashrom-git-90286fe643bbc2493275a5280a26766784435dda.tar.gz |
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>
Diffstat (limited to 'cli_classic.c')
-rw-r--r-- | cli_classic.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cli_classic.c b/cli_classic.c index d804caec..60f3fd50 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -579,32 +579,32 @@ static unsigned int count_max_decode_exceedings(const struct flashctx *flash, if ((buses & BUS_PARALLEL) && (max_rom_decode_->parallel < size)) { limitexceeded++; - msg_pdbg("Chip size %u kB is bigger than supported " - "size %u kB of chipset/board/programmer " + msg_pdbg("Chip size %"PRIu32" kB is bigger than supported " + "size %"PRIu32" kB of chipset/board/programmer " "for %s interface, " "probe/read/erase/write may fail. ", size / 1024, max_rom_decode_->parallel / 1024, "Parallel"); } if ((buses & BUS_LPC) && (max_rom_decode_->lpc < size)) { limitexceeded++; - msg_pdbg("Chip size %u kB is bigger than supported " - "size %u kB of chipset/board/programmer " + msg_pdbg("Chip size %"PRIu32" kB is bigger than supported " + "size %"PRIu32" kB of chipset/board/programmer " "for %s interface, " "probe/read/erase/write may fail. ", size / 1024, max_rom_decode_->lpc / 1024, "LPC"); } if ((buses & BUS_FWH) && (max_rom_decode_->fwh < size)) { limitexceeded++; - msg_pdbg("Chip size %u kB is bigger than supported " - "size %u kB of chipset/board/programmer " + msg_pdbg("Chip size %"PRIu32" kB is bigger than supported " + "size %"PRIu32" kB of chipset/board/programmer " "for %s interface, " "probe/read/erase/write may fail. ", size / 1024, max_rom_decode_->fwh / 1024, "FWH"); } if ((buses & BUS_SPI) && (max_rom_decode_->spi < size)) { limitexceeded++; - msg_pdbg("Chip size %u kB is bigger than supported " - "size %u kB of chipset/board/programmer " + msg_pdbg("Chip size %"PRIu32" kB is bigger than supported " + "size %"PRIu32" kB of chipset/board/programmer " "for %s interface, " "probe/read/erase/write may fail. ", size / 1024, max_rom_decode_->spi / 1024, "SPI"); |