From 6a8cbc1cb189fdc633d51faa23b4efe1db976384 Mon Sep 17 00:00:00 2001 From: mux Date: Fri, 13 Sep 2002 09:19:55 +0000 Subject: Fix another printf() format error which wasn't warned about because the bio_blkno was bogusly casted to an int. --- sys/dev/ccd/ccd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/ccd') diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index 2ce6ce2..519ea98 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -1177,9 +1177,10 @@ ccdiodone(struct bio *ibp) bp->bio_error = cbp->cb_buf.bio_error ? cbp->cb_buf.bio_error : EIO; } - printf("ccd%d: error %d on component %d block %d " + printf("ccd%d: error %d on component %d block %jd " "(ccd block %jd)%s\n", unit, bp->bio_error, cbp->cb_comp, - (int)cbp->cb_buf.bio_blkno, (intmax_t)bp->bio_blkno, msg); + (intmax_t)cbp->cb_buf.bio_blkno, (intmax_t)bp->bio_blkno, + msg); } /* -- cgit v1.1