Skip to contentSkip to conversation

ehci: fix build error of print format specifier

PATCH In review Michael Chang 2 participants 2 messages Jun 13, 2017 – Aug 7, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ehci: fix build error of print format specifier

It is introduced by commit e058df7b5a9cc7aaa9872eaa916b715544a8f9840, use PRIxGRUB_ADDR as format specfier to fix the portability problem.

---
 grub-core/bus/usb/ehci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
grub-core/bus/usb/ehci.c +2 -2
index c772e76..bdd77b5 100644
@@ -504,7 +504,7 @@ grub_ehci_init_device (volatile void *regs)
 #endif
 
   grub_dprintf ("ehci",
-		"EHCI grub_ehci_pci_iter: iobase of oper. regs: %08x\n",
+		"EHCI grub_ehci_pci_iter: iobase of oper. regs: %08" PRIxGRUB_ADDR "\n",
 		(grub_addr_t) e->iobase_ehcc + caplen);
   grub_dprintf ("ehci", "EHCI grub_ehci_pci_iter: COMMAND: %08x\n",
 		grub_ehci_oper_read32 (e, GRUB_EHCI_COMMAND));
@@ -696,7 +696,7 @@ grub_ehci_init_device (volatile void *regs)
   grub_dprintf ("ehci", "EHCI grub_ehci_pci_iter: OK at all\n");
 
   grub_dprintf ("ehci",
-		"EHCI grub_ehci_pci_iter: iobase of oper. regs: %08x\n",
+		"EHCI grub_ehci_pci_iter: iobase of oper. regs: %08" PRIxGRUB_ADDR "\n",
 		(grub_addr_t) regs);
   grub_dprintf ("ehci", "EHCI grub_ehci_pci_iter: COMMAND: %08x\n",
 		grub_ehci_oper_read32 (e, GRUB_EHCI_COMMAND));
Signature · 1 line
2.6.2
#1 lore raw

Fixed in 284afab081ef7ed7db2c59151853aa3c92d988f2

Quoted 39 lines · Michael Chang

It is introduced by commit e058df7b5a9cc7aaa9872eaa916b715544a8f9840, use PRIxGRUB_ADDR as format specfier to fix the portability problem.

---
 grub-core/bus/usb/ehci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
grub-core/bus/usb/ehci.c +1 -1
index c772e76..bdd77b5 100644
@@ -504,7 +504,7 @@ grub_ehci_init_device (volatile void *regs)
 #endif
 
   grub_dprintf ("ehci",
-               "EHCI grub_ehci_pci_iter: iobase of oper. regs: %08x\n",
+               "EHCI grub_ehci_pci_iter: iobase of oper. regs: %08"
 PRIxGRUB_ADDR "\n",
                (grub_addr_t) e->iobase_ehcc + caplen);
   grub_dprintf ("ehci", "EHCI grub_ehci_pci_iter: COMMAND: %08x\n",
                grub_ehci_oper_read32 (e, GRUB_EHCI_COMMAND));
grub-core/bus/usb/ehci.c +1 -1
@@ -696,7 +696,7 @@ grub_ehci_init_device (volatile void *regs)
   grub_dprintf ("ehci", "EHCI grub_ehci_pci_iter: OK at all\n");
 
   grub_dprintf ("ehci",
-               "EHCI grub_ehci_pci_iter: iobase of oper. regs: %08x\n",
+               "EHCI grub_ehci_pci_iter: iobase of oper. regs: %08"
 PRIxGRUB_ADDR "\n",
                (grub_addr_t) regs);
   grub_dprintf ("ehci", "EHCI grub_ehci_pci_iter: COMMAND: %08x\n",
                grub_ehci_oper_read32 (e, GRUB_EHCI_COMMAND));

--
2.6.2

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel