summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum/vinuminterrupt.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-07 21:52:51 +0000
committerjhb <jhb@FreeBSD.org>2002-11-07 21:52:51 +0000
commit5195107f7123130a530fc9d113d20e10c5646f6a (patch)
tree00396d77fc2826ab6a530b0c349a1a606c1853be /sys/dev/vinum/vinuminterrupt.c
parent5499a6ab97aa114847314d105ec93427f8990571 (diff)
downloadFreeBSD-src-5195107f7123130a530fc9d113d20e10c5646f6a.zip
FreeBSD-src-5195107f7123130a530fc9d113d20e10c5646f6a.tar.gz
Explicitly cast daddr_t's to long long's when printing them since daddr_t
is not long long on all archs. (They happen to be long's on 64-bit arch's and gcc considers that significant enough to warn about it.) These should probably be uintmax_t but I didn't feel like adding all the extra includes.
Diffstat (limited to 'sys/dev/vinum/vinuminterrupt.c')
-rw-r--r--sys/dev/vinum/vinuminterrupt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/vinum/vinuminterrupt.c b/sys/dev/vinum/vinuminterrupt.c
index 0d40bf2..fdefee4 100644
--- a/sys/dev/vinum/vinuminterrupt.c
+++ b/sys/dev/vinum/vinuminterrupt.c
@@ -103,7 +103,7 @@ complete_rqe(struct buf *bp)
"%s:%s read error, block %lld for %ld bytes\n",
gravity,
sd->name,
- bp->b_blkno,
+ (long long)bp->b_blkno,
bp->b_bcount);
} else { /* write operation */
if ((rq->error == ENXIO) || (sd->flags & VF_RETRYERRORS) == 0) {
@@ -114,19 +114,19 @@ complete_rqe(struct buf *bp)
"%s:%s write error, block %lld for %ld bytes\n",
gravity,
sd->name,
- bp->b_blkno,
+ (long long)bp->b_blkno,
bp->b_bcount);
}
log(LOG_ERR,
"%s: user buffer block %lld for %ld bytes\n",
sd->name,
- ubp->b_blkno,
+ (long long)ubp->b_blkno,
ubp->b_bcount);
if (rq->error == ENXIO) { /* the drive's down too */
log(LOG_ERR,
"%s: fatal drive I/O error, block %lld for %ld bytes\n",
DRIVE[rqe->driveno].label.name,
- bp->b_blkno,
+ (long long)bp->b_blkno,
bp->b_bcount);
DRIVE[rqe->driveno].lasterror = rq->error;
set_drive_state(rqe->driveno, /* take the drive down */
@@ -415,7 +415,7 @@ complete_raid5_write(struct rqelement *rqe)
minor(rqe->b.b_dev),
rqe->sdno,
(u_int) (rqe->b.b_blkno - SD[rqe->sdno].driveoffset),
- rqe->b.b_blkno,
+ (long long)rqe->b.b_blkno,
rqe->b.b_bcount);
if (debug & DEBUG_LASTREQS)
logrq(loginfo_raid5_data, (union rqinfou) rqe, ubp);
@@ -454,7 +454,7 @@ complete_raid5_write(struct rqelement *rqe)
minor(rqe->b.b_dev),
rqe->sdno,
(u_int) (rqe->b.b_blkno - SD[rqe->sdno].driveoffset),
- rqe->b.b_blkno,
+ (long long)rqe->b.b_blkno,
rqe->b.b_bcount);
if (debug & DEBUG_LASTREQS)
logrq(loginfo_raid5_parity, (union rqinfou) rqe, ubp);
OpenPOWER on IntegriCloud