aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-03-19 20:12:08 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-03-19 20:12:08 +0000
commitbe1673823fec2f9d75e18cf03c6ff04f671753ef (patch)
tree238d3b540747a50a07627dd1905156c7acd0b33c /sys
parent8409849dd015760ffa88cdc2a8cbcf051fcb3248 (diff)
downloadsrc-be1673823fec2f9d75e18cf03c6ff04f671753ef.tar.gz
src-be1673823fec2f9d75e18cf03c6ff04f671753ef.zip
Fix bio->bio_blkno format warning.
Notes
Notes: svn path=/head/; revision=92718
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ccd/ccd.c8
-rw-r--r--sys/geom/geom_ccd.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c
index 72b2f7ea2d6c..54b3a13e424c 100644
--- a/sys/dev/ccd/ccd.c
+++ b/sys/dev/ccd/ccd.c
@@ -1078,9 +1078,9 @@ ccdbuffer(struct ccdbuf **cb, struct ccd_s *cs, struct bio *bp, daddr_t bn, cadd
#ifdef DEBUG
if (ccddebug & CCDB_IO)
- printf(" dev %p(u%ld): cbp %p bn %d addr %p bcnt %ld\n",
+ printf(" dev %p(u%ld): cbp %p bn %lld addr %p bcnt %ld\n",
ci->ci_dev, (unsigned long)(ci-cs->sc_cinfo), cbp,
- cbp->cb_buf.bio_blkno, cbp->cb_buf.bio_data,
+ (long long)cbp->cb_buf.bio_blkno, cbp->cb_buf.bio_data,
cbp->cb_buf.bio_bcount);
#endif
cb[0] = cbp;
@@ -1138,9 +1138,9 @@ ccdiodone(struct bio *ibp)
if (ccddebug & CCDB_IO) {
printf("ccdiodone: bp %p bcount %ld resid %ld\n",
bp, bp->bio_bcount, bp->bio_resid);
- printf(" dev %p(u%d), cbp %p bn %d addr %p bcnt %ld\n",
+ printf(" dev %p(u%d), cbp %p bn %lld addr %p bcnt %ld\n",
cbp->cb_buf.bio_dev, cbp->cb_comp, cbp,
- cbp->cb_buf.bio_blkno, cbp->cb_buf.bio_data,
+ (long long)cbp->cb_buf.bio_blkno, cbp->cb_buf.bio_data,
cbp->cb_buf.bio_bcount);
}
#endif
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index 72b2f7ea2d6c..54b3a13e424c 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -1078,9 +1078,9 @@ ccdbuffer(struct ccdbuf **cb, struct ccd_s *cs, struct bio *bp, daddr_t bn, cadd
#ifdef DEBUG
if (ccddebug & CCDB_IO)
- printf(" dev %p(u%ld): cbp %p bn %d addr %p bcnt %ld\n",
+ printf(" dev %p(u%ld): cbp %p bn %lld addr %p bcnt %ld\n",
ci->ci_dev, (unsigned long)(ci-cs->sc_cinfo), cbp,
- cbp->cb_buf.bio_blkno, cbp->cb_buf.bio_data,
+ (long long)cbp->cb_buf.bio_blkno, cbp->cb_buf.bio_data,
cbp->cb_buf.bio_bcount);
#endif
cb[0] = cbp;
@@ -1138,9 +1138,9 @@ ccdiodone(struct bio *ibp)
if (ccddebug & CCDB_IO) {
printf("ccdiodone: bp %p bcount %ld resid %ld\n",
bp, bp->bio_bcount, bp->bio_resid);
- printf(" dev %p(u%d), cbp %p bn %d addr %p bcnt %ld\n",
+ printf(" dev %p(u%d), cbp %p bn %lld addr %p bcnt %ld\n",
cbp->cb_buf.bio_dev, cbp->cb_comp, cbp,
- cbp->cb_buf.bio_blkno, cbp->cb_buf.bio_data,
+ (long long)cbp->cb_buf.bio_blkno, cbp->cb_buf.bio_data,
cbp->cb_buf.bio_bcount);
}
#endif