summaryrefslogtreecommitdiff
path: root/sys/arch/i386/pci
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2013-10-01 20:22:14 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2013-10-01 20:22:14 +0000
commit89792c68f54e47e46ddaa2996cfe21fa597cb763 (patch)
tree109a96c829012eca3e00e0e8cb9bbd3b4f452477 /sys/arch/i386/pci
parent78fed2d74d047c4635326003573ee6d659bea5ef (diff)
Format string fixes: %hu/%hd for uint16_t, %u/%d/%x for uint32_t
- despite the name, ntohl returns uint32_t, not long - also fix some %d into %u
Diffstat (limited to 'sys/arch/i386/pci')
-rw-r--r--sys/arch/i386/pci/pcibios.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/pci/pcibios.c b/sys/arch/i386/pci/pcibios.c
index 479954a71d4..47b5003ef27 100644
--- a/sys/arch/i386/pci/pcibios.c
+++ b/sys/arch/i386/pci/pcibios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcibios.c,v 1.41 2013/10/01 20:05:58 sf Exp $ */
+/* $OpenBSD: pcibios.c,v 1.42 2013/10/01 20:22:12 sf Exp $ */
/* $NetBSD: pcibios.c,v 1.5 2000/08/01 05:23:59 uch Exp $ */
/*
@@ -151,7 +151,7 @@ pcibiosprobe(struct device *parent, void *match, void *aux)
rv = bios32_service(PCIBIOS_SIGNATURE, &pcibios_entry,
&pcibios_entry_info);
- PCIBIOS_PRINTV(("pcibiosprobe: 0x%lx:0x%lx at 0x%lx[0x%lx]\n",
+ PCIBIOS_PRINTV(("pcibiosprobe: 0x%hx:0x%x at 0x%x[0x%x]\n",
pcibios_entry.segment, pcibios_entry.offset,
pcibios_entry_info.bei_base, pcibios_entry_info.bei_size));
@@ -172,7 +172,7 @@ pcibiosattach(struct device *parent, struct device *self, void *aux)
&rev_min, &mech1, &mech2,
&scmech1, &scmech2, &sc->max_bus);
- printf(": rev %d.%d @ 0x%lx/0x%lx\n",
+ printf(": rev %d.%d @ 0x%x/0x%x\n",
rev_maj, rev_min >> 4, pcibios_entry_info.bei_base,
pcibios_entry_info.bei_size);