Correct for size_t would be %zx, but coreboot's printf doesn't support this.
Trying to keep it simple: Two sizes are expected equal so use same %x for both. Cast to unsigned int to make sure it fits. Signed-off-by: Jens Rottmann <JRottmann@LiPPERTEmbedded.de> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5719 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
0ede4c08a9
commit
da71ba5284
|
@ -13,8 +13,8 @@ static void check_pirq_routing_table(struct irq_routing_table *rt)
|
|||
printk(BIOS_INFO, "Checking Interrupt Routing Table consistency...\n");
|
||||
|
||||
if (sizeof(struct irq_routing_table) != rt->size) {
|
||||
printk(BIOS_WARNING, "Inconsistent Interrupt Routing Table size (0x%lx/0x%x).\n",
|
||||
sizeof(struct irq_routing_table),
|
||||
printk(BIOS_WARNING, "Inconsistent Interrupt Routing Table size (0x%x/0x%x).\n",
|
||||
(unsigned int) sizeof(struct irq_routing_table),
|
||||
rt->size
|
||||
);
|
||||
rt->size=sizeof(struct irq_routing_table);
|
||||
|
|
Loading…
Reference in New Issue