grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ehci: fix build error of print format specifier


From: Michael Chang
Subject: [PATCH] ehci: fix build error of print format specifier
Date: Tue, 13 Jun 2017 14:51:06 +0800
User-agent: Mutt/1.5.24 (2015-08-30)

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(-)

diff --git a/grub-core/bus/usb/ehci.c b/grub-core/bus/usb/ehci.c
index c772e76..bdd77b5 100644
--- a/grub-core/bus/usb/ehci.c
+++ b/grub-core/bus/usb/ehci.c
@@ -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));
-- 
2.6.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]