diff options
author | Stefan Tauner <stefan.tauner@gmx.at> | 2013-04-05 01:15:04 +0200 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-04-05 20:21:35 +0200 |
commit | 0dc775e894a3a7b3539eeeb4210bf8b796062274 (patch) | |
tree | f45c027379697fe57d1bf72c6dae80c7c99146ff /util | |
parent | ce801b55fa21f119f19f39eacc15d8b63e639890 (diff) | |
download | coreboot-0dc775e894a3a7b3539eeeb4210bf8b796062274.tar.xz |
inteltool: use inttypes for prints in memory.c
This fixes at least one warning on my machine where "llx" is replaced by PRIx64.
Change-Id: Iee3e5027d327d4d5f8e6d8b2d53d051f74bfc354
Signed-off-by: Stefan Tauner <stefan.tauner@gmx.at>
Reviewed-on: http://review.coreboot.org/3024
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/inteltool/memory.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/inteltool/memory.c b/util/inteltool/memory.c index 6847e5c547..506620d8ab 100644 --- a/util/inteltool/memory.c +++ b/util/inteltool/memory.c @@ -197,25 +197,25 @@ int print_mchbar(struct pci_dev *nb, struct pci_access *pacc) for (i = 0; i < size; i++) { switch (mch_registers[i].size) { case 8: - printf("mchbase+0x%04x: 0x%016llx (%s)\n", + printf("mchbase+0x%04x: 0x%016"PRIx64" (%s)\n", mch_registers[i].addr, *(uint64_t *)(mchbar+mch_registers[i].addr), mch_registers[i].name); break; case 4: - printf("mchbase+0x%04x: 0x%08x (%s)\n", + printf("mchbase+0x%04x: 0x%08"PRIx32" (%s)\n", mch_registers[i].addr, *(uint32_t *)(mchbar+mch_registers[i].addr), mch_registers[i].name); break; case 2: - printf("mchbase+0x%04x: 0x%04x (%s)\n", + printf("mchbase+0x%04x: 0x%04"PRIx16" (%s)\n", mch_registers[i].addr, *(uint16_t *)(mchbar+mch_registers[i].addr), mch_registers[i].name); break; case 1: - printf("mchbase+0x%04x: 0x%02x (%s)\n", + printf("mchbase+0x%04x: 0x%02"PRIx8" (%s)\n", mch_registers[i].addr, *(uint8_t *)(mchbar+mch_registers[i].addr), mch_registers[i].name); @@ -225,7 +225,7 @@ int print_mchbar(struct pci_dev *nb, struct pci_access *pacc) } else { for (i = 0; i < size; i += 4) { if (*(uint32_t *)(mchbar + i)) - printf("0x%04x: 0x%08x\n", i, *(uint32_t *)(mchbar+i)); + printf("0x%04x: 0x%08"PRIx32"\n", i, *(uint32_t *)(mchbar+i)); } } |