Adjust some debug printfs after b_bcount was changed from long to int.

From Patrick Welche on current-users@
This commit is contained in:
bouyer 2004-10-17 17:49:04 +00:00
parent f5254bdba7
commit ccd16ca6dc
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ss.c,v 1.55 2004/09/17 23:13:02 mycroft Exp $ */
/* $NetBSD: ss.c,v 1.56 2004/10/17 17:49:04 bouyer Exp $ */
/*
* Copyright (c) 1995 Kenneth Stailey. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ss.c,v 1.55 2004/09/17 23:13:02 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ss.c,v 1.56 2004/10/17 17:49:04 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -409,7 +409,7 @@ ssstrategy(struct buf *bp)
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

View File

@ -1,4 +1,4 @@
/* $NetBSD: ss_mustek.c,v 1.25 2004/09/18 00:21:03 mycroft Exp $ */
/* $NetBSD: ss_mustek.c,v 1.26 2004/10/17 17:49:04 bouyer Exp $ */
/*
* Copyright (c) 1995 Joachim Koenig-Baltes. All rights reserved.
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ss_mustek.c,v 1.25 2004/09/18 00:21:03 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ss_mustek.c,v 1.26 2004/10/17 17:49:04 bouyer Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -257,11 +257,11 @@ mustek_minphys(struct ss_softc *ss, struct buf *bp)
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));
}