summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-23 20:05:03 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-24 12:00:56 -0500
commit79d45cbd7b63a5ef7b2b46b8de10dfa5dbfa8899 (patch)
treed7f969bdc1486ab12ea07b30b351ba52bb66a06f
parentbeatnik/pci/gt_pci_init.c: Fix printf() format warnings (diff)
downloadrtems-79d45cbd7b63a5ef7b2b46b8de10dfa5dbfa8899.tar.bz2
shared/bootloader/misc.c: Fix printf() format warnings
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/misc.c5
1 files 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 8bdea71632..111e02bd9e 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();