mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 19:57:43 +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:
+3
-2
@@ -1962,7 +1962,7 @@ zil_itx_assign(zilog_t *zilog, itx_t *itx, dmu_tx_t *tx)
|
||||
* This should be rare.
|
||||
*/
|
||||
zfs_dbgmsg("zil_itx_assign: missed itx cleanup for "
|
||||
"txg %llu", itxg->itxg_txg);
|
||||
"txg %llu", (u_longlong_t)itxg->itxg_txg);
|
||||
clean = itxg->itxg_itxs;
|
||||
}
|
||||
itxg->itxg_txg = txg;
|
||||
@@ -3287,7 +3287,8 @@ zil_close(zilog_t *zilog)
|
||||
txg_wait_synced(zilog->zl_dmu_pool, txg);
|
||||
|
||||
if (zilog_is_dirty(zilog))
|
||||
zfs_dbgmsg("zil (%px) is dirty, txg %llu", zilog, txg);
|
||||
zfs_dbgmsg("zil (%px) is dirty, txg %llu", zilog,
|
||||
(u_longlong_t)txg);
|
||||
if (txg < spa_freeze_txg(zilog->zl_spa))
|
||||
VERIFY(!zilog_is_dirty(zilog));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user