summaryrefslogtreecommitdiffstats
path: root/sys/dev/si
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-23 10:12:12 +0000
committerbde <bde@FreeBSD.org>1998-08-23 10:12:12 +0000
commitbb396c130c6b394fb683ab88586fce4d9473b6f4 (patch)
treeeeb522dd59df387c798bc2beba6a678b6a83fd30 /sys/dev/si
parent356e188c4755ed4d8a2eee31f265bd6b8b9efcd8 (diff)
downloadFreeBSD-src-bb396c130c6b394fb683ab88586fce4d9473b6f4.zip
FreeBSD-src-bb396c130c6b394fb683ab88586fce4d9473b6f4.tar.gz
Fixed printf format errors. `struct eisa_device' uses a strange type
for the unit number (like most SCSI drivers).
Diffstat (limited to 'sys/dev/si')
-rw-r--r--sys/dev/si/si.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 8b7dc26..4f91d8a 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.75 1998/08/16 01:04:48 bde Exp $
+ * $Id: si.c,v 1.76 1998/08/23 08:26:40 bde Exp $
*/
#ifndef lint
@@ -437,7 +437,7 @@ si_eisa_attach(ed)
sc->sc_typename = si_type[sc->sc_type];
if ((iospace = ed->ioconf.ioaddrs.lh_first) == NULL) {
- printf("si%d: no iospace??\n", ed->unit);
+ printf("si%lu: no iospace??\n", ed->unit);
return -1;
}
sc->sc_eisa_iobase = iospace->addr;
@@ -446,18 +446,18 @@ si_eisa_attach(ed)
sc->sc_eisa_irq = irq;
if ((maddr = ed->ioconf.maddrs.lh_first) == NULL) {
- printf("si%d: where am I??\n", ed->unit);
+ printf("si%lu: where am I??\n", ed->unit);
return -1;
}
eisa_reg_start(ed);
if (eisa_reg_iospace(ed, iospace)) {
- printf("si%d: failed to register iospace 0x%x\n",
- ed->unit, iospace);
+ printf("si%lu: failed to register iospace %p\n",
+ ed->unit, (void *)iospace);
return -1;
}
if (eisa_reg_mspace(ed, maddr)) {
- printf("si%d: failed to register memspace 0x%x\n",
- ed->unit, maddr);
+ printf("si%lu: failed to register memspace %p\n",
+ ed->unit, (void *)maddr);
return -1;
}
/*
@@ -468,7 +468,7 @@ si_eisa_attach(ed)
*/
if (eisa_reg_intr(ed, irq, (void (*)(void *)) si_intr,
(void *)(intptr_t)(ed->unit), &tty_imask, 1)) {
- printf("si%d: failed to register interrupt %d\n",
+ printf("si%lu: failed to register interrupt %d\n",
ed->unit, irq);
return -1;
}
OpenPOWER on IntegriCloud