From 989fd514b1053d5443b4e6155af9c8d863f5f0f2 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 27 Feb 2015 12:53:35 -0800 Subject: 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 Issue #1445 --- module/zfs/zap_micro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/zfs/zap_micro.c') diff --git a/module/zfs/zap_micro.c b/module/zfs/zap_micro.c index 0c2e76319..dfa7c6615 100644 --- a/module/zfs/zap_micro.c +++ b/module/zfs/zap_micro.c @@ -965,7 +965,7 @@ again: start = 0; goto again; } - ASSERT(!"out of entries!"); + cmn_err(CE_PANIC, "out of entries!"); } int -- cgit v1.2.3