summaryrefslogtreecommitdiffstats
path: root/sys/dev/ccd
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-09-13 09:19:55 +0000
committermux <mux@FreeBSD.org>2002-09-13 09:19:55 +0000
commit6a8cbc1cb189fdc633d51faa23b4efe1db976384 (patch)
treef36f93fa965f20af0f85ec65885b13d0e6cd5d68 /sys/dev/ccd
parentaf171eef1b1ba99407263bdb1f1ebf5640d9b430 (diff)
downloadFreeBSD-src-6a8cbc1cb189fdc633d51faa23b4efe1db976384.zip
FreeBSD-src-6a8cbc1cb189fdc633d51faa23b4efe1db976384.tar.gz
Fix another printf() format error which wasn't warned about
because the bio_blkno was bogusly casted to an int.
Diffstat (limited to 'sys/dev/ccd')
-rw-r--r--sys/dev/ccd/ccd.c5
1 files changed, 3 insertions, 2 deletions
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);
}
/*
OpenPOWER on IntegriCloud