From af171eef1b1ba99407263bdb1f1ebf5640d9b430 Mon Sep 17 00:00:00 2001 From: mux Date: Fri, 13 Sep 2002 09:16:06 +0000 Subject: Fix a printf() format error on 64 bits architectures. Also fix some style bugs on the same line. --- sys/dev/ccd/ccd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index 415c0eb..2ce6ce2 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -97,6 +97,7 @@ #include #include #include +#include #include #include #include @@ -1176,9 +1177,9 @@ 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 (ccd block %lld)%s\n", - unit, bp->bio_error, cbp->cb_comp, - (int)cbp->cb_buf.bio_blkno, bp->bio_blkno, msg); + printf("ccd%d: error %d on component %d block %d " + "(ccd block %jd)%s\n", unit, bp->bio_error, cbp->cb_comp, + (int)cbp->cb_buf.bio_blkno, (intmax_t)bp->bio_blkno, msg); } /* -- cgit v1.1