summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-13 09:53:11 +0000
committerbde <bde@FreeBSD.org>1998-07-13 09:53:11 +0000
commit925110cd2319780c323091d214a7840895264611 (patch)
tree0b6db913180c8c762bccb935c7f679792b4a731f /sys/dev/isp
parent8b9760c8843815ead46a252ff5760ee566fa9f0e (diff)
downloadFreeBSD-src-925110cd2319780c323091d214a7840895264611.zip
FreeBSD-src-925110cd2319780c323091d214a7840895264611.tar.gz
Fixed printf format errors (only 1 left in GENERIC now).
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_pci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index 354a39f..fd9778e 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $Id: isp_pci.c,v 1.9 1998/04/17 17:44:36 mjacob Exp $ */
+/* $Id: isp_pci.c,v 1.1 1998/04/22 18:10:34 mjacob Exp $ */
/*
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
* FreeBSD Version.
@@ -201,7 +201,7 @@ isp_pci_attach(config_id, unit)
pcs = malloc(sizeof (struct isp_pcisoftc), M_DEVBUF, M_NOWAIT);
if (pcs == NULL) {
- printf("isp%ld: cannot allocate softc\n", unit);
+ printf("isp%d: cannot allocate softc\n", unit);
return;
}
bzero(pcs, sizeof (struct isp_pcisoftc));
@@ -224,7 +224,7 @@ isp_pci_attach(config_id, unit)
}
}
if (mapped == 0) {
- printf("isp%ld: unable to map any ports!\n", unit);
+ printf("isp%d: unable to map any ports!\n", unit);
free(pcs, M_DEVBUF);
return;
}
@@ -265,7 +265,7 @@ isp_pci_attach(config_id, unit)
if (pci_map_int(config_id, (void (*)(void *))isp_intr,
(void *)isp, &IMASK) == 0) {
- printf("%s: could not map interrupt\n");
+ printf("%s: could not map interrupt\n", isp->isp_name);
free(pcs, M_DEVBUF);
return;
}
@@ -553,7 +553,7 @@ isp_pci_dumpregs(isp)
struct ispsoftc *isp;
{
struct isp_pcisoftc *pci = (struct isp_pcisoftc *)isp;
- printf("%s: PCI Status Command/Status=%x\n", pci->pci_isp.isp_name,
+ printf("%s: PCI Status Command/Status=%lx\n", pci->pci_isp.isp_name,
pci_conf_read(pci->pci_id, PCI_COMMAND_STATUS_REG));
}
#endif
OpenPOWER on IntegriCloud