[rtems commit] shared/bootloader/misc.c: Fix printf() format warnings

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


Module:    rtems
Branch:    master
Commit:    79d45cbd7b63a5ef7b2b46b8de10dfa5dbfa8899
Changeset: http://git.rtems.org/rtems/commit/?id=79d45cbd7b63a5ef7b2b46b8de10dfa5dbfa8899

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Apr 23 20:05:03 2017 -0500

shared/bootloader/misc.c: Fix printf() format warnings

---

 c/src/lib/libbsp/powerpc/shared/bootloader/misc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c b/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c
index 8bdea71..111e02b 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c
@@ -286,14 +286,15 @@ setup_hw(void)
 	       "Processor/Bus frequencies (Hz): %ld/%ld\n"
 	       "Time Base Divisor: %ld\n"
 	       "Memory Size: %lx\n"
-		   "Residual: %lx (length %u)\n",
+		   "Residual: %lx (length %lu)\n",
  	       vpd.PrintableModel,
 	       vpd.Serial,
 	       vpd.ProcessorHz,
                vpd.ProcessorBusHz,
 	       (vpd.TimeBaseDivisor ? vpd.TimeBaseDivisor : 4000),
 	       res->TotalMemory,
-		   (unsigned long)res, res->ResidualLength);
+	       (unsigned long)res,
+	       res->ResidualLength);
 
 	/* This reconfigures all the PCI subsystem */
         pci_init();



More information about the vc mailing list