Subject: scsipi / bcount
To: None <current-users@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 10/17/2004 14:51:19
Just a trivial correction to take sys/buf.h changes into account...
Cheers,
Patrick
Index: ss.c
===================================================================
RCS file: /cvsroot/src/sys/dev/scsipi/ss.c,v
retrieving revision 1.55
diff -u -r1.55 ss.c
--- ss.c 17 Sep 2004 23:13:02 -0000 1.55
+++ ss.c 17 Oct 2004 13:36:13 -0000
@@ -409,7 +409,7 @@
int s;
SC_DEBUG(ss->sc_periph, SCSIPI_DB1,
- ("ssstrategy %ld bytes @ blk %" PRId64 "\n", bp->b_bcount, bp->b_blkno));
+ ("ssstrategy %d bytes @ blk %" PRId64 "\n", bp->b_bcount, bp->b_blkno));
/*
* If the device has been made invalid, error out
Index: ss_mustek.c
===================================================================
RCS file: /cvsroot/src/sys/dev/scsipi/ss_mustek.c,v
retrieving revision 1.25
diff -u -r1.25 ss_mustek.c
--- ss_mustek.c 18 Sep 2004 00:21:03 -0000 1.25
+++ ss_mustek.c 17 Oct 2004 13:36:13 -0000
@@ -257,11 +257,11 @@
struct scsipi_periph *periph = ss->sc_periph;
#endif
- SC_DEBUG(periph, SCSIPI_DB1, ("mustek_minphys: before: %ld\n",
+ SC_DEBUG(periph, SCSIPI_DB1, ("mustek_minphys: before: %d\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(periph, SCSIPI_DB1, ("mustek_minphys: after: %ld\n",
+ SC_DEBUG(periph, SCSIPI_DB1, ("mustek_minphys: after: %d\n",
bp->b_bcount));
}