summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-05-05 16:56:44 +0000
committerobrien <obrien@FreeBSD.org>2003-05-05 16:56:44 +0000
commit9f119f13a5f2724d3ceb63aab8709af07be94bc7 (patch)
treeec517bff8c13046a046745da2267e3873d6242bd /sys/dev/vinum
parent77b1a36816e3f349d2e695df839459ac1905b0ab (diff)
downloadFreeBSD-src-9f119f13a5f2724d3ceb63aab8709af07be94bc7.zip
FreeBSD-src-9f119f13a5f2724d3ceb63aab8709af07be94bc7.tar.gz
Fix usages of %ll[dx] with typedef'ed created types.
In the kernel it is wrong 99.9 times out of 100 to use %ll rather than cast to intmax_t and use %j.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinumrequest.c30
-rw-r--r--sys/dev/vinum/vinumrevive.c8
2 files changed, 19 insertions, 19 deletions
diff --git a/sys/dev/vinum/vinumrequest.c b/sys/dev/vinum/vinumrequest.c
index c332b02..80e3260 100644
--- a/sys/dev/vinum/vinumrequest.c
+++ b/sys/dev/vinum/vinumrequest.c
@@ -334,13 +334,13 @@ launch_requests(struct request *rq, int reviveok)
#ifdef VINUMDEBUG
if (debug & DEBUG_REVIVECONFLICT)
log(LOG_DEBUG,
- "Revive conflict sd %d: %p\n%s dev %d.%d, offset 0x%llx, length %ld\n",
+ "Revive conflict sd %d: %p\n%s dev %d.%d, offset 0x%jx, length %ld\n",
rq->sdno,
rq,
rq->bp->b_iocmd == BIO_READ ? "Read" : "Write",
major(rq->bp->b_dev),
minor(rq->bp->b_dev),
- rq->bp->b_blkno,
+ (intmax_t)rq->bp->b_blkno,
rq->bp->b_bcount);
#endif
return 0; /* and get out of here */
@@ -357,12 +357,12 @@ launch_requests(struct request *rq, int reviveok)
#ifdef VINUMDEBUG
if (debug & DEBUG_ADDRESSES)
log(LOG_DEBUG,
- "Request: %p\n%s dev %d.%d, offset 0x%llx, length %ld\n",
+ "Request: %p\n%s dev %d.%d, offset 0x%jx, length %ld\n",
rq,
rq->bp->b_iocmd == BIO_READ ? "Read" : "Write",
major(rq->bp->b_dev),
minor(rq->bp->b_dev),
- rq->bp->b_blkno,
+ (intmax_t)rq->bp->b_blkno,
rq->bp->b_bcount);
vinum_conf.lastrq = rq;
vinum_conf.lastbuf = rq->bp;
@@ -431,13 +431,13 @@ launch_requests(struct request *rq, int reviveok)
#ifdef VINUMDEBUG
if (debug & DEBUG_ADDRESSES)
log(LOG_DEBUG,
- " %s dev %d.%d, sd %d, offset 0x%x, devoffset 0x%llx, length %ld\n",
+ " %s dev %d.%d, sd %d, offset 0x%x, devoffset 0x%jx, length %ld\n",
rqe->b.b_iocmd == BIO_READ ? "Read" : "Write",
major(rqe->b.b_dev),
minor(rqe->b.b_dev),
rqe->sdno,
(u_int) (rqe->b.b_blkno - SD[rqe->sdno].driveoffset),
- rqe->b.b_blkno,
+ (intmax_t)rqe->b.b_blkno,
rqe->b.b_bcount);
if (debug & DEBUG_LASTREQS) {
microtime(&rqe->launchtime); /* time we launched this request */
@@ -636,16 +636,16 @@ bre(struct request *rq,
#ifdef VINUMDEBUG
if (debug & DEBUG_EOFINFO) { /* tell on the request */
log(LOG_DEBUG,
- "vinum: EOF on plex %s, sd %s offset %x (user offset 0x%llx)\n",
+ "vinum: EOF on plex %s, sd %s offset %x (user offset 0x%jx)\n",
plex->name,
sd->name,
(u_int) sd->sectors,
- bp->b_blkno);
+ (intmax_t)bp->b_blkno);
log(LOG_DEBUG,
- "vinum: stripebase %#llx, stripeoffset %#llxx, blockoffset %#llx\n",
- stripebase,
- stripeoffset,
- blockoffset);
+ "vinum: stripebase %#jx, stripeoffset %#jx, blockoffset %#jx\n",
+ (intmax_t)stripebase,
+ (intmax_t)stripeoffset,
+ (intmax_t)blockoffset);
}
#endif
}
@@ -975,13 +975,13 @@ sdio(struct buf *bp)
#ifdef VINUMDEBUG
if (debug & DEBUG_ADDRESSES)
log(LOG_DEBUG,
- " %s dev %d.%d, sd %d, offset 0x%llx, devoffset 0x%llx, length %ld\n",
+ " %s dev %d.%d, sd %d, offset 0x%jx, devoffset 0x%jx, length %ld\n",
sbp->b.b_iocmd == BIO_READ ? "Read" : "Write",
major(sbp->b.b_dev),
minor(sbp->b.b_dev),
sbp->sdno,
- sbp->b.b_blkno - SD[sbp->sdno].driveoffset,
- sbp->b.b_blkno,
+ (intmax_t)(sbp->b.b_blkno - SD[sbp->sdno].driveoffset),
+ (intmax_t)sbp->b.b_blkno,
sbp->b.b_bcount);
#endif
s = splbio();
diff --git a/sys/dev/vinum/vinumrevive.c b/sys/dev/vinum/vinumrevive.c
index d3e6c2c..03e16f9 100644
--- a/sys/dev/vinum/vinumrevive.c
+++ b/sys/dev/vinum/vinumrevive.c
@@ -204,13 +204,13 @@ revive_block(int sdno)
if (debug & DEBUG_REVIVECONFLICT)
log(LOG_DEBUG,
- "Relaunch revive conflict sd %d: %p\n%s dev %d.%d, offset 0x%llx, length %ld\n",
+ "Relaunch revive conflict sd %d: %p\n%s dev %d.%d, offset 0x%jx, length %ld\n",
rq->sdno,
rq,
rq->bp->b_iocmd == BIO_READ ? "Read" : "Write",
major(rq->bp->b_dev),
minor(rq->bp->b_dev),
- rq->bp->b_blkno,
+ (intmax_t)rq->bp->b_blkno,
rq->bp->b_bcount);
#endif
launch_requests(sd->waitlist, 1); /* do them now */
@@ -306,8 +306,8 @@ parityops(struct vinum_ioctl_msg *data)
if (op == checkparity)
reply->error = EIO;
sprintf(reply->msg,
- "Parity incorrect at offset 0x%llx\n",
- errorloc);
+ "Parity incorrect at offset 0x%jx\n",
+ (intmax_t)errorloc);
}
if (reply->error == EAGAIN) { /* still OK, */
plex->checkblock = pstripe + (pbp->b_bcount >> DEV_BSHIFT); /* moved this much further down */
OpenPOWER on IntegriCloud