summaryrefslogtreecommitdiffstats
path: root/sys/pci
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/pci
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/pci')
-rw-r--r--sys/pci/if_tl.c6
-rw-r--r--sys/pci/if_tx.c11
-rw-r--r--sys/pci/isp_pci.c10
3 files changed, 14 insertions, 13 deletions
diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c
index 19ed498..1ae12ea1 100644
--- a/sys/pci/if_tl.c
+++ b/sys/pci/if_tl.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_tl.c,v 1.9 1998/06/07 17:12:38 dfr Exp $
+ * $Id: if_tl.c,v 1.10 1998/06/21 14:53:34 bde Exp $
*/
/*
@@ -217,7 +217,7 @@
#ifndef lint
static char rcsid[] =
- "$Id: if_tl.c,v 1.9 1998/06/07 17:12:38 dfr Exp $";
+ "$Id: if_tl.c,v 1.10 1998/06/21 14:53:34 bde Exp $";
#endif
/*
@@ -1425,7 +1425,7 @@ tl_attach_ctlr(config_id, unit)
int s, i, phys = 0;
vm_offset_t pbase, vbase;
struct tl_csr *csr;
- char eaddr[ETHER_ADDR_LEN];
+ u_char eaddr[ETHER_ADDR_LEN];
struct tl_mii_frame frame;
u_int32_t command;
struct tl_iflist *ilist;
diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c
index 74dd0e1..ca4d282 100644
--- a/sys/pci/if_tx.c
+++ b/sys/pci/if_tx.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_tx.c,v 1.32 1998/07/03 23:59:09 galv Exp $
+ * $Id: if_tx.c,v 1.13 1998/07/04 08:02:46 semenu Exp $
*
*/
@@ -1513,13 +1513,14 @@ epic_dump_state __P((
printf("\ntx%d: dumping tx descriptors",sc->unit);
for(j=0;j<TX_RING_SIZE;j++){
tdesc = sc->tx_desc + j;
- printf("\ndesc%d: %4d 0x%04x, 0x%08x, 0x%04x %4d, 0x%08x, mbuf: 0x%08x",
+ printf(
+ "\ndesc%d: %4d 0x%04x, 0x%08lx, 0x%04x %4u, 0x%08lx, mbuf: %p",
j,
tdesc->txlength,tdesc->status,
- tdesc->bufaddr,
+ (u_long)tdesc->bufaddr,
tdesc->control,tdesc->buflength,
- tdesc->next,
- sc->tx_buffer[j].mbuf
+ (u_long)tdesc->next,
+ (void *)sc->tx_buffer[j].mbuf
);
}
}
diff --git a/sys/pci/isp_pci.c b/sys/pci/isp_pci.c
index 354a39f..fd9778e 100644
--- a/sys/pci/isp_pci.c
+++ b/sys/pci/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