Fixed -Wall compiler warnings.

This commit is contained in:
mark 1996-05-06 00:11:16 +00:00
parent 8f285e6977
commit 58ff5333d7
3 changed files with 22 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ncr5380sbc.c,v 1.3 1996/04/26 22:25:56 mark Exp $ */
/* $NetBSD: ncr5380sbc.c,v 1.4 1996/05/06 00:12:43 mark Exp $ */
/*
* Copyright (c) 1996 Melvin Tang-Richardson (Modified for weird regs)
@ -2527,8 +2527,8 @@ ncr5380_show_req(sr)
db_printf("TID=%d ", sr->sr_target);
db_printf("LUN=%d ", sr->sr_lun);
db_printf("dh=0x%x ", sr->sr_dma_hand);
db_printf("dptr=0x%x ", sr->sr_dataptr);
db_printf("dh=0x%x ", (u_int)sr->sr_dma_hand);
db_printf("dptr=0x%x ", (u_int)sr->sr_dataptr);
db_printf("dlen=0x%x ", sr->sr_datalen);
db_printf("flags=%d ", sr->sr_flags);
db_printf("stat=%d ", sr->sr_status);
@ -2541,7 +2541,7 @@ ncr5380_show_req(sr)
#ifdef SCSIDEBUG
show_scsi_xs(xs);
#else
db_printf("xs=0x%x\n", xs);
db_printf("xs=0x%x\n", (u_int)xs);
#endif
}
@ -2566,7 +2566,7 @@ ncr5380_show_state()
if (sr->sr_xs) {
if (sr == sc->sc_current)
k = i;
db_printf("req %d: (sr=0x%x)", i, (long)sr);
db_printf("req %d: (sr=0x%lx)", i, (long)sr);
ncr5380_show_req(sr);
}
}
@ -2577,14 +2577,14 @@ ncr5380_show_state()
for (j = 0; j < 8; j++) { /* LUN */
sr = sc->sc_matrix[i][j];
if (sr) {
db_printf("TID=%d LUN=%d sr=0x%x\n", i, j, (long)sr);
db_printf("TID=%d LUN=%d sr=0x%lx\n", i, j, (long)sr);
}
}
}
db_printf("sc_state=0x%x\n", sc->sc_state);
db_printf("sc_current=0x%x\n", sc->sc_current);
db_printf("sc_dataptr=0x%x\n", sc->sc_dataptr);
db_printf("sc_current=0x%x\n", (u_int)sc->sc_current);
db_printf("sc_dataptr=0x%x\n", (u_int)sc->sc_dataptr);
db_printf("sc_datalen=0x%x\n", sc->sc_datalen);
db_printf("sc_prevphase=%d\n", sc->sc_prevphase);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ncr5380sbc.c,v 1.3 1996/04/26 22:25:56 mark Exp $ */
/* $NetBSD: ncr5380sbc.c,v 1.4 1996/05/06 00:12:43 mark Exp $ */
/*
* Copyright (c) 1996 Melvin Tang-Richardson (Modified for weird regs)
@ -2527,8 +2527,8 @@ ncr5380_show_req(sr)
db_printf("TID=%d ", sr->sr_target);
db_printf("LUN=%d ", sr->sr_lun);
db_printf("dh=0x%x ", sr->sr_dma_hand);
db_printf("dptr=0x%x ", sr->sr_dataptr);
db_printf("dh=0x%x ", (u_int)sr->sr_dma_hand);
db_printf("dptr=0x%x ", (u_int)sr->sr_dataptr);
db_printf("dlen=0x%x ", sr->sr_datalen);
db_printf("flags=%d ", sr->sr_flags);
db_printf("stat=%d ", sr->sr_status);
@ -2541,7 +2541,7 @@ ncr5380_show_req(sr)
#ifdef SCSIDEBUG
show_scsi_xs(xs);
#else
db_printf("xs=0x%x\n", xs);
db_printf("xs=0x%x\n", (u_int)xs);
#endif
}
@ -2566,7 +2566,7 @@ ncr5380_show_state()
if (sr->sr_xs) {
if (sr == sc->sc_current)
k = i;
db_printf("req %d: (sr=0x%x)", i, (long)sr);
db_printf("req %d: (sr=0x%lx)", i, (long)sr);
ncr5380_show_req(sr);
}
}
@ -2577,14 +2577,14 @@ ncr5380_show_state()
for (j = 0; j < 8; j++) { /* LUN */
sr = sc->sc_matrix[i][j];
if (sr) {
db_printf("TID=%d LUN=%d sr=0x%x\n", i, j, (long)sr);
db_printf("TID=%d LUN=%d sr=0x%lx\n", i, j, (long)sr);
}
}
}
db_printf("sc_state=0x%x\n", sc->sc_state);
db_printf("sc_current=0x%x\n", sc->sc_current);
db_printf("sc_dataptr=0x%x\n", sc->sc_dataptr);
db_printf("sc_current=0x%x\n", (u_int)sc->sc_current);
db_printf("sc_dataptr=0x%x\n", (u_int)sc->sc_dataptr);
db_printf("sc_datalen=0x%x\n", sc->sc_datalen);
db_printf("sc_prevphase=%d\n", sc->sc_prevphase);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ptsc.c,v 1.3 1996/04/26 22:38:18 mark Exp $ */
/* $NetBSD: ptsc.c,v 1.4 1996/05/06 00:11:16 mark Exp $ */
/*
* Copyright (c) 1995 Scott Stevens
@ -249,10 +249,11 @@ ptsc_set_dma_adr(sc, ptr)
struct sfas_softc *sc;
void *ptr;
{
#if 0
ptsc_regmap_p rp;
unsigned int *p;
unsigned int d;
#endif
#if 0
printf("ptsc_set_dma_adr(sc = 0x%08x, ptr = 0x%08x)\n", (u_int)sc, (u_int)ptr);
#endif
@ -287,9 +288,9 @@ ptsc_set_dma_mode(sc, mode)
struct sfas_softc *sc;
int mode;
{
#if 0
struct csc_specific *spec;
#if 0
spec = sc->sc_spec;
spec->portbits = (spec->portbits & ~FLSC_PB_DMA_BITS) | mode;
@ -373,10 +374,11 @@ ptsc_build_dma_chain(sc, chain, p, l)
void *p;
int l;
{
#if 0
vm_offset_t pa, lastpa;
char *ptr;
int len, prelen, postlen, max_t, n;
#endif
#if 0
printf("ptsc_build_dma_chain()\n");
#endif