summaryrefslogtreecommitdiffstats
path: root/bsps/sparc/shared/pci/gr_rasta_tmtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/sparc/shared/pci/gr_rasta_tmtc.c')
-rw-r--r--bsps/sparc/shared/pci/gr_rasta_tmtc.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/bsps/sparc/shared/pci/gr_rasta_tmtc.c b/bsps/sparc/shared/pci/gr_rasta_tmtc.c
index f615958c84..b243259d96 100644
--- a/bsps/sparc/shared/pci/gr_rasta_tmtc.c
+++ b/bsps/sparc/shared/pci/gr_rasta_tmtc.c
@@ -15,6 +15,7 @@
* http://www.rtems.org/license/LICENSE.
*/
+#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -601,8 +602,10 @@ int gr_rasta_tmtc_init1(struct drvmgr_dev *dev)
PCI_DEV_EXPAND(priv->pcidev));
printk(" PCI VENDOR: 0x%04x, DEVICE: 0x%04x\n",
devinfo->id.vendor, devinfo->id.device);
- printk(" PCI BAR[0]: 0x%lx - 0x%lx\n", bar0, bar0 + bar0_size - 1);
- printk(" PCI BAR[1]: 0x%lx - 0x%lx\n", bar1, bar1 + bar1_size - 1);
+ printk(" PCI BAR[0]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
+ bar0, bar0 + bar0_size - 1);
+ printk(" PCI BAR[1]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
+ bar1, bar1 + bar1_size - 1);
printk(" IRQ: %d\n\n\n", devinfo->irq);
/* all neccessary space assigned to GR-RASTA-IO target? */
@@ -854,8 +857,10 @@ void gr_rasta_tmtc_print_dev(struct drvmgr_dev *dev, int options)
bar1 = devinfo->resources[1].address;
bar1_size = devinfo->resources[1].size;
- printf(" PCI BAR[0]: 0x%lx - 0x%lx\n", bar0, bar0 + bar0_size - 1);
- printf(" PCI BAR[1]: 0x%lx - 0x%lx\n", bar1, bar1 + bar1_size - 1);
+ printf(" PCI BAR[0]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
+ bar0, bar0 + bar0_size - 1);
+ printf(" PCI BAR[1]: 0x%" PRIx32 " - 0x%" PRIx32 "\n",
+ bar1, bar1 + bar1_size - 1);
printf(" IRQ: %d\n", devinfo->irq);
printf(" PCI REVISION: %d\n", devinfo->rev);
printf(" FREQ: %d Hz\n", priv->version->amba_freq_hz);