summaryrefslogtreecommitdiffstats
path: root/sys/pci/pcic_p.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-18 00:32:50 +0000
committerbde <bde@FreeBSD.org>1998-08-18 00:32:50 +0000
commit09bd4b96031eb28e1f510c7fd8cb02e65daee9a0 (patch)
tree06b5b642aeea9a9a24327add2f724aa180a02b2f /sys/pci/pcic_p.c
parent744645c0346324449f43323c246d39ca4bef546c (diff)
downloadFreeBSD-src-09bd4b96031eb28e1f510c7fd8cb02e65daee9a0.zip
FreeBSD-src-09bd4b96031eb28e1f510c7fd8cb02e65daee9a0.tar.gz
Fixed printf format errors.
Diffstat (limited to 'sys/pci/pcic_p.c')
-rw-r--r--sys/pci/pcic_p.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/pci/pcic_p.c b/sys/pci/pcic_p.c
index 61162bf..4c667f2 100644
--- a/sys/pci/pcic_p.c
+++ b/sys/pci/pcic_p.c
@@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id$
+ * $Id: pcic_p.c,v 1.5 1998/02/07 20:41:20 nate Exp $
*/
#include "pci.h"
@@ -108,7 +108,7 @@ pcic_pci_attach(pcici_t config_id, int unit)
for (j = 0; j < 0x98; j += 16) {
printf("%02x: ", j);
for (i = 0; i < 16; i += 4)
- printf(" %08x", pci_conf_read(config_id, i+j));
+ printf(" %08lx", pci_conf_read(config_id, i+j));
printf("\n");
}
p = (u_char *)pmap_mapdev(pci_conf_read(config_id, 0x10),
@@ -117,10 +117,10 @@ pcic_pci_attach(pcici_t config_id, int unit)
printf("Cardbus Socket registers:\n");
printf("00: ");
for (i = 0; i < 4; i += 1)
- printf(" %08x:", pl[i]);
+ printf(" %08lx:", pl[i]);
printf("\n10: ");
for (i = 4; i < 8; i += 1)
- printf(" %08x:", pl[i]);
+ printf(" %08lx:", pl[i]);
printf("\nExCa registers:\n");
for (i = 0; i < 0x40; i += 16)
printf("%02x: %16D\n", i, p + 0x800 + i, " ");
OpenPOWER on IntegriCloud