-/* $NetBSD: cd.c,v 1.91 1996/04/22 01:46:00 christos Exp $ */
+/* $NetBSD: cd.c,v 1.92 1996/05/05 19:52:50 christos Exp $ */
/*
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
SC_DEBUG(sc_link, SDEV_DB1,
("cdopen: dev=0x%x (unit %d (of %d), partition %d)\n", dev, unit,
- cd_cd.cd_ndevs, part));
+ cd_cd.cd_ndevs, CDPART(dev)));
if ((error = cdlock(cd)) != 0)
return error;
SC_DEBUG(cd->sc_link, SDEV_DB2, ("cdstrategy "));
SC_DEBUG(cd->sc_link, SDEV_DB1,
- ("%d bytes @ blk %d\n", bp->b_bcount, bp->b_blkno));
+ ("%ld bytes @ blk %d\n", bp->b_bcount, bp->b_blkno));
/*
* The transfer must be a whole number of blocks.
*/
-/* $OpenBSD: sd.c,v 1.9 1996/05/06 11:33:37 deraadt Exp $ */
-/* $NetBSD: sd.c,v 1.97 1996/05/03 19:48:22 christos Exp $ */
+/* $OpenBSD: sd.c,v 1.10 1996/05/10 12:31:39 deraadt Exp $ */
+/* $NetBSD: sd.c,v 1.98 1996/05/05 19:52:53 christos Exp $ */
/*
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
sc_link = sd->sc_link;
SC_DEBUG(sc_link, SDEV_DB1,
- ("sdopen: dev=0x%x (unit %d (of %d))\n", dev, unit,
- sd_cd.cd_ndevs));
+ ("sdopen: dev=0x%x (unit %d (of %d), partition %d)\n", dev, unit,
+ sd_cd.cd_ndevs, SDPART(dev)));
if ((error = sdlock(sd)) != 0)
return error;
-/* $OpenBSD: ss.c,v 1.4 1996/05/07 09:34:31 niklas Exp $ */
-/* $NetBSD: ss.c,v 1.9 1996/03/30 21:47:00 christos Exp $ */
+/* $OpenBSD: ss.c,v 1.5 1996/05/10 12:31:39 deraadt Exp $ */
+/* $NetBSD: ss.c,v 1.10 1996/05/05 19:52:55 christos Exp $ */
/*
* Copyright (c) 1995 Kenneth Stailey. All rights reserved.
int s;
SC_DEBUG(ss->sc_link, SDEV_DB1,
- ("ssstrategy %d bytes @ blk %d\n", bp->b_bcount, bp->b_blkno));
+ ("ssstrategy %ld bytes @ blk %d\n", bp->b_bcount, bp->b_blkno));
if (bp->b_bcount > ss->sio.scan_window_size)
bp->b_bcount = ss->sio.scan_window_size;
-/* $OpenBSD: ss_mustek.c,v 1.4 1996/05/07 09:34:32 niklas Exp $ */
-/* $NetBSD: ss_mustek.c,v 1.3 1996/03/30 21:47:04 christos Exp $ */
+/* $OpenBSD: ss_mustek.c,v 1.5 1996/05/10 12:31:40 deraadt Exp $ */
+/* $NetBSD: ss_mustek.c,v 1.4 1996/05/05 19:52:57 christos Exp $ */
/*
* Copyright (c) 1995 Joachim Koenig-Baltes. All rights reserved.
struct scsi_link *sc_link = ss->sc_link;
#endif
- SC_DEBUG(sc_link, SDEV_DB1, ("mustek_minphys: before: %d\n",
+ SC_DEBUG(sc_link, SDEV_DB1, ("mustek_minphys: before: %ld\n",
bp->b_bcount));
bp->b_bcount -= bp->b_bcount %
((ss->sio.scan_pixels_per_line * ss->sio.scan_bits_per_pixel) / 8);
- SC_DEBUG(sc_link, SDEV_DB1, ("mustek_minphys: after: %d\n",
+ SC_DEBUG(sc_link, SDEV_DB1, ("mustek_minphys: after: %ld\n",
bp->b_bcount));
}
/* instead of the bytes, the mustek wants the number of lines */
lines_to_read = bp->b_bcount /
((ss->sio.scan_pixels_per_line * ss->sio.scan_bits_per_pixel) / 8);
- SC_DEBUG(sc_link, SDEV_DB1, ("mustek_read: read %d lines\n",
+ SC_DEBUG(sc_link, SDEV_DB1, ("mustek_read: read %ld lines\n",
lines_to_read));
_lto3b(lines_to_read, cmd.length);
("mustek_get_size: bpl=%ld, lines=%ld\n",
(ss->sio.scan_pixels_per_line * ss->sio.scan_bits_per_pixel) / 8,
ss->sio.scan_lines));
- SC_DEBUG(sc_link, SDEV_DB1, ("window size = %d\n",
+ SC_DEBUG(sc_link, SDEV_DB1, ("window size = %ld\n",
ss->sio.scan_window_size));
}
-/* $OpenBSD: ss_scanjet.c,v 1.4 1996/05/07 09:34:34 niklas Exp $ */
-/* $NetBSD: ss_scanjet.c,v 1.3 1996/03/30 21:47:07 christos Exp $ */
+/* $OpenBSD: ss_scanjet.c,v 1.5 1996/05/10 12:31:41 deraadt Exp $ */
+/* $NetBSD: ss_scanjet.c,v 1.4 1996/05/05 19:52:58 christos Exp $ */
/*
* Copyright (c) 1995 Kenneth Stailey. All rights reserved.
struct ss_softc *ss;
{
char escape_codes[20];
-#ifdef SCSIDEBUG
- struct scsi_link *sc_link = ss->sc_link;
-#endif
int error;
scanjet_compute_sizes(ss);
-/* $OpenBSD: st.c,v 1.10 1996/04/21 22:31:20 deraadt Exp $ */
-/* $NetBSD: st.c,v 1.65 1996/03/30 21:45:04 christos Exp $ */
+/* $OpenBSD: st.c,v 1.11 1996/05/10 12:31:41 deraadt Exp $ */
+/* $NetBSD: st.c,v 1.66 1996/05/05 19:53:01 christos Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
int s;
SC_DEBUG(st->sc_link, SDEV_DB1,
- ("ststrategy %d bytes @ blk %d\n", bp->b_bcount, bp->b_blkno));
+ ("ststrategy %ld bytes @ blk %d\n", bp->b_bcount, bp->b_blkno));
/*
* If it's a null transfer, return immediatly
*/