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>
This commit is contained in:
parent
ce801b55fa
commit
0dc775e894
|
@ -197,25 +197,25 @@ int print_mchbar(struct pci_dev *nb, struct pci_access *pacc)
|
||||||
for (i = 0; i < size; i++) {
|
for (i = 0; i < size; i++) {
|
||||||
switch (mch_registers[i].size) {
|
switch (mch_registers[i].size) {
|
||||||
case 8:
|
case 8:
|
||||||
printf("mchbase+0x%04x: 0x%016llx (%s)\n",
|
printf("mchbase+0x%04x: 0x%016"PRIx64" (%s)\n",
|
||||||
mch_registers[i].addr,
|
mch_registers[i].addr,
|
||||||
*(uint64_t *)(mchbar+mch_registers[i].addr),
|
*(uint64_t *)(mchbar+mch_registers[i].addr),
|
||||||
mch_registers[i].name);
|
mch_registers[i].name);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
printf("mchbase+0x%04x: 0x%08x (%s)\n",
|
printf("mchbase+0x%04x: 0x%08"PRIx32" (%s)\n",
|
||||||
mch_registers[i].addr,
|
mch_registers[i].addr,
|
||||||
*(uint32_t *)(mchbar+mch_registers[i].addr),
|
*(uint32_t *)(mchbar+mch_registers[i].addr),
|
||||||
mch_registers[i].name);
|
mch_registers[i].name);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
printf("mchbase+0x%04x: 0x%04x (%s)\n",
|
printf("mchbase+0x%04x: 0x%04"PRIx16" (%s)\n",
|
||||||
mch_registers[i].addr,
|
mch_registers[i].addr,
|
||||||
*(uint16_t *)(mchbar+mch_registers[i].addr),
|
*(uint16_t *)(mchbar+mch_registers[i].addr),
|
||||||
mch_registers[i].name);
|
mch_registers[i].name);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
printf("mchbase+0x%04x: 0x%02x (%s)\n",
|
printf("mchbase+0x%04x: 0x%02"PRIx8" (%s)\n",
|
||||||
mch_registers[i].addr,
|
mch_registers[i].addr,
|
||||||
*(uint8_t *)(mchbar+mch_registers[i].addr),
|
*(uint8_t *)(mchbar+mch_registers[i].addr),
|
||||||
mch_registers[i].name);
|
mch_registers[i].name);
|
||||||
|
@ -225,7 +225,7 @@ int print_mchbar(struct pci_dev *nb, struct pci_access *pacc)
|
||||||
} else {
|
} else {
|
||||||
for (i = 0; i < size; i += 4) {
|
for (i = 0; i < size; i += 4) {
|
||||||
if (*(uint32_t *)(mchbar + i))
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue