aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/scd
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-07-13 09:53:11 +0000
committerBruce Evans <bde@FreeBSD.org>1998-07-13 09:53:11 +0000
commit9bffbcd4f5706e9ccfe7446bf29a8b6bdf2d09ea (patch)
treea7160fe82e25307f2dc522df6e4d001b01ce5477 /sys/dev/scd
parent6baa65474dbaa46e52a214fdcb3fbbce295f54bd (diff)
Notes
Diffstat (limited to 'sys/dev/scd')
-rw-r--r--sys/dev/scd/scd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c
index 98d2341d4ce0..15ad25ed505c 100644
--- a/sys/dev/scd/scd.c
+++ b/sys/dev/scd/scd.c
@@ -41,7 +41,7 @@
*/
-/* $Id: scd.c,v 1.38 1998/06/08 09:47:36 bde Exp $ */
+/* $Id: scd.c,v 1.39 1998/07/04 22:30:17 julian Exp $ */
/* Please send any comments to micke@dynas.se */
@@ -334,11 +334,12 @@ scdstrategy(struct buf *bp)
cd = scd_data + unit;
- XDEBUG(2, ("scd%d: DEBUG: strategy: block=%ld, bcount=%ld\n", unit, bp->b_blkno, bp->b_bcount));
+ XDEBUG(2, ("scd%d: DEBUG: strategy: block=%ld, bcount=%ld\n",
+ unit, (long)bp->b_blkno, bp->b_bcount));
if (unit >= NSCD || bp->b_blkno < 0 || (bp->b_bcount % SCDBLKSIZE)) {
printf("scd%d: strategy failure: blkno = %ld, bcount = %ld\n",
- unit, bp->b_blkno, bp->b_bcount);
+ unit, (long)bp->b_blkno, bp->b_bcount);
bp->b_error = EINVAL;
bp->b_flags |= B_ERROR;
goto bad;
@@ -437,7 +438,7 @@ scdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
part = scd_part(dev);
cd = scd_data + unit;
- XDEBUG(1, ("scd%d: ioctl: cmd=0x%x\n", unit, cmd));
+ XDEBUG(1, ("scd%d: ioctl: cmd=0x%lx\n", unit, cmd));
if (!(cd->flags & SCDVALID))
return EIO;
@@ -500,7 +501,7 @@ scdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
#endif
return 0;
default:
- printf("scd%d: unsupported ioctl (cmd=0x%x)\n", unit, cmd);
+ printf("scd%d: unsupported ioctl (cmd=0x%lx)\n", unit, cmd);
return ENOTTY;
}
}