]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change ASSERT(!"...") to cmn_err(CE_PANIC, ...)
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 Feb 2015 20:53:35 +0000 (12:53 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Mar 2015 21:22:21 +0000 (13:22 -0800)
commit989fd514b1053d5443b4e6155af9c8d863f5f0f2
treebf21efdd55cfa3ce96ec62ac21aad31e2faedfb6
parent8c45def24a5c640a3b44ce38cc3482b9c89a3b1d
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
module/zcommon/zfs_deleg.c
module/zfs/arc.c
module/zfs/dmu_tx.c
module/zfs/zap_leaf.c
module/zfs/zap_micro.c