mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 20:22:14 +03:00
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 <behlendorf1@llnl.gov> Issue #1445
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user