summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2021-12-13 09:23:19 +0100
committerToomas Soome <tsoome@me.com>2022-01-04 23:25:33 +0200
commit2377faa90a4c2d3d07ca98ca1dcc926a6e269898 (patch)
tree1f27128ba261db7d1c1af6c1b3915e4d94356716 /usr/src
parent430062b0bc38ddbe5eda3921705af71cd2c44260 (diff)
downloadillumos-joyent-2377faa90a4c2d3d07ca98ca1dcc926a6e269898.tar.gz
14307 loader: bcache: Fix debug printf
Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/boot/sys/boot/common/bcache.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/boot/sys/boot/common/bcache.c b/usr/src/boot/sys/boot/common/bcache.c
index 3d509efc1a..5838f02fef 100644
--- a/usr/src/boot/sys/boot/common/bcache.c
+++ b/usr/src/boot/sys/boot/common/bcache.c
@@ -372,7 +372,8 @@ bcache_strategy(void *devdata, int rw, daddr_t blk, size_t size,
/* bypass large requests, or when the cache is inactive */
if (bc == NULL ||
((size * 2 / bcache_blksize) > bcache_nblks)) {
- DPRINTF("bypass %zu from %qu", size / bcache_blksize, blk);
+ DPRINTF("bypass %zu from %jd", size / bcache_blksize,
+ (intmax_t)blk);
bcache_bypasses++;
rw &= F_MASK;
return (dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf,
@@ -449,7 +450,8 @@ bcache_insert(struct bcache *bc, daddr_t blkno)
cand = BHASH(bc, blkno);
- DPRINTF("insert blk %llu -> %u # %d", blkno, cand, bcache_bcount);
+ DPRINTF("insert blk %jd -> %u # %d", (intmax_t)blkno, cand,
+ bcache_bcount);
bc->bcache_ctl[cand].bc_blkno = blkno;
bc->bcache_ctl[cand].bc_count = bcache_bcount++;
}
@@ -466,7 +468,7 @@ bcache_invalidate(struct bcache *bc, daddr_t blkno)
if (bc->bcache_ctl[i].bc_blkno == blkno) {
bc->bcache_ctl[i].bc_count = -1;
bc->bcache_ctl[i].bc_blkno = -1;
- DPRINTF("invalidate blk %llu", blkno);
+ DPRINTF("invalidate blk %jd", (intmax_t)blkno);
}
}