diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index 415c0eb4b3f..2ce6ce2a2eb 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); } /* diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index 415c0eb4b3f..2ce6ce2a2eb 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_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); } /*