mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Annotated dprintf as printf-like
ZFS loves using %llu for uint64_t, but that requires a cast to not be noisy - which is even done in many, though not all, places. Also a couple places used %u for uint64_t, which were promoted to %llu. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #12233
This commit is contained in:
@@ -529,8 +529,9 @@ spa_condense_indirect_complete_sync(void *arg, dmu_tx_t *tx)
|
||||
zfs_dbgmsg("finished condense of vdev %llu in txg %llu: "
|
||||
"new mapping object %llu has %llu entries "
|
||||
"(was %llu entries)",
|
||||
vd->vdev_id, dmu_tx_get_txg(tx), vic->vic_mapping_object,
|
||||
new_count, old_count);
|
||||
(u_longlong_t)vd->vdev_id, (u_longlong_t)dmu_tx_get_txg(tx),
|
||||
(u_longlong_t)vic->vic_mapping_object,
|
||||
(u_longlong_t)new_count, (u_longlong_t)old_count);
|
||||
|
||||
vdev_config_dirty(spa->spa_root_vdev);
|
||||
}
|
||||
@@ -796,7 +797,7 @@ spa_condense_indirect_start_sync(vdev_t *vd, dmu_tx_t *tx)
|
||||
|
||||
zfs_dbgmsg("starting condense of vdev %llu in txg %llu: "
|
||||
"posm=%llu nm=%llu",
|
||||
vd->vdev_id, dmu_tx_get_txg(tx),
|
||||
(u_longlong_t)vd->vdev_id, (u_longlong_t)dmu_tx_get_txg(tx),
|
||||
(u_longlong_t)scip->scip_prev_obsolete_sm_object,
|
||||
(u_longlong_t)scip->scip_next_mapping_object);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user