[rtems commit] beatnik/marvell/discovery.c: Fix printf() format warnings

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


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

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

beatnik/marvell/discovery.c: Fix printf() format warnings

---

 c/src/lib/libbsp/powerpc/beatnik/marvell/discovery.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/beatnik/marvell/discovery.c b/c/src/lib/libbsp/powerpc/beatnik/marvell/discovery.c
index c6f6475..b45585a 100644
--- a/c/src/lib/libbsp/powerpc/beatnik/marvell/discovery.c
+++ b/c/src/lib/libbsp/powerpc/beatnik/marvell/discovery.c
@@ -106,8 +106,8 @@ static DiscoveryVersion rval = unknown;
 		 * access methods are installed or not (as a matter of fact this shouldn't
 		 * matter for any device on hose 0)
 		 */
-printk("config addr is 0x%08x\n", BSP_pci_configuration.pci_config_addr);
-printk("config data is 0x%08x\n", BSP_pci_configuration.pci_config_data);
+printk("config addr is %p\n", BSP_pci_configuration.pci_config_addr);
+printk("config data is %p\n", BSP_pci_configuration.pci_config_data);
 		pci_read_config_word(0,0,0,PCI_VENDOR_ID, &ds);
 		if ( PCI_VENDOR_ID_MARVELL != ds ) {
 			if ( assertion ) {



More information about the vc mailing list