summaryrefslogtreecommitdiffstats
path: root/sys/dev/ccd
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-09-13 09:16:06 +0000
committermux <mux@FreeBSD.org>2002-09-13 09:16:06 +0000
commitaf171eef1b1ba99407263bdb1f1ebf5640d9b430 (patch)
tree928a334636f7d7607e7a8c9128a3d61eeddff10a /sys/dev/ccd
parentc8f83170c0d331e6a16675360a650cd0abbf5cb8 (diff)
downloadFreeBSD-src-af171eef1b1ba99407263bdb1f1ebf5640d9b430.zip
FreeBSD-src-af171eef1b1ba99407263bdb1f1ebf5640d9b430.tar.gz
Fix a printf() format error on 64 bits architectures.
Also fix some style bugs on the same line.
Diffstat (limited to 'sys/dev/ccd')
-rw-r--r--sys/dev/ccd/ccd.c7
1 files changed, 4 insertions, 3 deletions
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 <sys/namei.h>
#include <sys/conf.h>
#include <sys/stat.h>
+#include <sys/stdint.h>
#include <sys/sysctl.h>
#include <sys/disk.h>
#include <sys/devicestat.h>
@@ -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);
}
/*
OpenPOWER on IntegriCloud