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/arc.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/arc.c')
-rw-r--r-- | module/zfs/arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 070d85aaf..9a81b4c59 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -2944,7 +2944,7 @@ arc_access(arc_buf_hdr_t *buf, kmutex_t *hash_lock) DTRACE_PROBE1(new_state__mfu, arc_buf_hdr_t *, buf); arc_change_state(arc_mfu, buf, hash_lock); } else { - ASSERT(!"invalid arc state"); + cmn_err(CE_PANIC, "invalid arc state 0x%p", buf->b_state); } } |