diff options
author | Brian Behlendorf <[email protected]> | 2015-02-27 12:53:35 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-03-03 13:22:21 -0800 |
commit | 989fd514b1053d5443b4e6155af9c8d863f5f0f2 (patch) | |
tree | bf21efdd55cfa3ce96ec62ac21aad31e2faedfb6 /module/zfs/dmu_tx.c | |
parent | 8c45def24a5c640a3b44ce38cc3482b9c89a3b1d (diff) |
Change ASSERT(!"...") to cmn_err(CE_PANIC, ...)
There are a handful of ASSERT(!"...")'s throughout the code base for
cases which should be impossible. This patch converts them to use
cmn_err(CE_PANIC, ...) to ensure they are always enabled and so that
additional debugging is logged if they were to occur.
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #1445
Diffstat (limited to 'module/zfs/dmu_tx.c')
-rw-r--r-- | module/zfs/dmu_tx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/dmu_tx.c b/module/zfs/dmu_tx.c index 890aecc1d..cdf5a6d0f 100644 --- a/module/zfs/dmu_tx.c +++ b/module/zfs/dmu_tx.c @@ -925,7 +925,8 @@ dmu_tx_dirty_buf(dmu_tx_t *tx, dmu_buf_impl_t *db) match_object = TRUE; break; default: - ASSERT(!"bad txh_type"); + cmn_err(CE_PANIC, "bad txh_type %d", + txh->txh_type); } } if (match_object && match_offset) { |