zdb: fix printf() length for uint64_t devid
Bug introduced in 213d682967
.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Warner Losh <imp@FreeBSD.org>
Signed-off-by: Martin Matuska <mm@FreeBSD.org>
Closes #15606
This commit is contained in:
parent
d813aa8530
commit
eb34de04d7
|
@ -2126,14 +2126,14 @@ dump_brt(spa_t *spa)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!brtvd->bv_initiated) {
|
if (!brtvd->bv_initiated) {
|
||||||
printf("BRT: vdev %lu: empty\n", vdevid);
|
printf("BRT: vdev %" PRIu64 ": empty\n", vdevid);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
zdb_nicenum(brtvd->bv_totalcount, count, sizeof (count));
|
zdb_nicenum(brtvd->bv_totalcount, count, sizeof (count));
|
||||||
zdb_nicebytes(brtvd->bv_usedspace, used, sizeof (used));
|
zdb_nicebytes(brtvd->bv_usedspace, used, sizeof (used));
|
||||||
zdb_nicebytes(brtvd->bv_savedspace, saved, sizeof (saved));
|
zdb_nicebytes(brtvd->bv_savedspace, saved, sizeof (saved));
|
||||||
printf("BRT: vdev %lu: refcnt %s; used %s; saved %s\n",
|
printf("BRT: vdev %" PRIu64 ": refcnt %s; used %s; saved %s\n",
|
||||||
vdevid, count, used, saved);
|
vdevid, count, used, saved);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2156,7 +2156,7 @@ dump_brt(spa_t *spa)
|
||||||
uint64_t offset = *(uint64_t *)za.za_name;
|
uint64_t offset = *(uint64_t *)za.za_name;
|
||||||
uint64_t refcnt = za.za_first_integer;
|
uint64_t refcnt = za.za_first_integer;
|
||||||
|
|
||||||
snprintf(dva, sizeof (dva), "%lu:%llx", vdevid,
|
snprintf(dva, sizeof (dva), "%" PRIu64 ":%llx", vdevid,
|
||||||
(u_longlong_t)offset);
|
(u_longlong_t)offset);
|
||||||
printf("%-16s %-10llu\n", dva, (u_longlong_t)refcnt);
|
printf("%-16s %-10llu\n", dva, (u_longlong_t)refcnt);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue