mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Handful of minor stack checking fixes
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@79 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
+3
-3
@@ -172,6 +172,8 @@ do { \
|
||||
"exceeded 90%% of maximum safe " \
|
||||
"stack size (%lu/%lu)\n", \
|
||||
_stack, THREAD_SIZE); \
|
||||
spl_debug_dumpstack(NULL); \
|
||||
spl_debug_dumplog(); \
|
||||
} else { \
|
||||
spl_debug_msg(NULL, D_TRACE, D_WARNING, \
|
||||
file, func, line, "Error " \
|
||||
@@ -183,13 +185,11 @@ do { \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define CHECK_STACK()__CHECK_STACK(__FILE__, __func__, __LINE__)
|
||||
#define CHECK_STACK() __CHECK_STACK(__FILE__, __func__, __LINE__)
|
||||
|
||||
/* ASSERTION that is safe to use within the debug system */
|
||||
#define __ASSERT(cond) \
|
||||
do { \
|
||||
CHECK_STACK(); \
|
||||
\
|
||||
if (unlikely(!(cond))) { \
|
||||
printk(KERN_ERR "ASSERTION("#cond") failed"); \
|
||||
SBUG(); \
|
||||
|
||||
Reference in New Issue
Block a user