summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-10-10 01:12:27 +0000
committerphk <phk@FreeBSD.org>1994-10-10 01:12:27 +0000
commitf6a1c45a08ac99a91e769ec6b3a62a20113b8e18 (patch)
tree7de31d0cb5debbd51904edaf25700f6e6d96027f /sys/isa
parent4f594ec8ba19a1ef9e8233bb1dc2dc9ff5f05f05 (diff)
downloadFreeBSD-src-f6a1c45a08ac99a91e769ec6b3a62a20113b8e18.zip
FreeBSD-src-f6a1c45a08ac99a91e769ec6b3a62a20113b8e18.tar.gz
Cosmetics. Silence gcc -Wall. Much more to do here :-(
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/fd.c8
-rw-r--r--sys/isa/fdc.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index bb4caca..d825634 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.c
@@ -40,7 +40,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.31 1994/09/17 18:08:36 joerg Exp $
+ * $Id: fd.c,v 1.32 1994/09/25 06:04:21 phk Exp $
*
*/
@@ -718,8 +718,8 @@ fdstrategy(struct buf *bp)
#endif
if (!(bp->b_flags & B_FORMAT)) {
if ((fdu >= NFD) || (bp->b_blkno < 0)) {
- printf("fdstrat: fdu = %d, blkno = %d, bcount = %d\n",
- fdu, bp->b_blkno, bp->b_bcount);
+ printf("fdstrat: fdu = %d, blkno = %lu, bcount = %ld\n",
+ fdu, (u_long)bp->b_blkno, bp->b_bcount);
bp->b_error = EINVAL;
bp->b_flags |= B_ERROR;
goto bad;
@@ -1255,7 +1255,7 @@ retrier(fdcu)
printf(" (ST0 %b ", fdc->status[0], NE7_ST0BITS);
printf(" ST1 %b ", fdc->status[1], NE7_ST1BITS);
printf(" ST2 %b ", fdc->status[2], NE7_ST2BITS);
- printf("cyl %d hd %d sec %d)\n",
+ printf("cyl %ld hd %ld sec %ld)\n",
fdc->status[3], fdc->status[4], fdc->status[5]);
}
bp->b_flags |= B_ERROR;
diff --git a/sys/isa/fdc.h b/sys/isa/fdc.h
index c938eb4..950ef23 100644
--- a/sys/isa/fdc.h
+++ b/sys/isa/fdc.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fdc.h,v 1.2 1994/02/14 22:24:25 nate Exp $
+ * $Id: fdc.h,v 1.3 1994/09/17 16:56:07 davidg Exp $
*
*/
@@ -53,7 +53,7 @@ struct fdc_data
int state;
int retry;
int fdout; /* mirror of the w/o digital output reg */
- int status[7]; /* copy of the registers */
+ u_long status[7]; /* copy of the registers */
struct buf head; /* Head of buf chain */
};
OpenPOWER on IntegriCloud