summaryrefslogtreecommitdiffstats
path: root/module/zcommon
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-02-27 12:53:35 -0800
committerBrian Behlendorf <[email protected]>2015-03-03 13:22:21 -0800
commit989fd514b1053d5443b4e6155af9c8d863f5f0f2 (patch)
treebf21efdd55cfa3ce96ec62ac21aad31e2faedfb6 /module/zcommon
parent8c45def24a5c640a3b44ce38cc3482b9c89a3b1d (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/zcommon')
-rw-r--r--module/zcommon/zfs_deleg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zcommon/zfs_deleg.c b/module/zcommon/zfs_deleg.c
index a152b4e76..f6e41da9d 100644
--- a/module/zcommon/zfs_deleg.c
+++ b/module/zcommon/zfs_deleg.c
@@ -227,7 +227,7 @@ zfs_deleg_whokey(char *attr, zfs_deleg_who_type_t type,
ZFS_DELEG_FIELD_SEP_CHR);
break;
default:
- ASSERT(!"bad zfs_deleg_who_type_t");
+ cmn_err(CE_PANIC, "bad zfs_deleg_who_type_t %d", type);
}
}