grub-devel
[Top][All Lists]
Advanced

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

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


From: Vladimir 'phcoder' Serbinenko
Subject: Re: [PATCH] ehci: fix build error of print format specifier
Date: Mon, 07 Aug 2017 14:39:59 +0000

Fixed in 284afab081ef7ed7db2c59151853aa3c92d988f2

Le Tue, Jun 13, 2017 à 8:52 AM, Michael Chang <address@hidden> a écrit :
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


_______________________________________________
Grub-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/grub-devel

reply via email to

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