mirror of
https://github.com/schoebel/mars
synced 2025-01-18 05:11:35 +00:00
brick_checking: adapt to newer kernel debugging constants
This commit is contained in:
parent
89f1fb5795
commit
d6f9f9626a
@ -59,7 +59,10 @@ do { \
|
||||
#ifdef CONFIG_MARS_DEBUG_MEM
|
||||
#define CHECK_PTR_DEAD(ptr,label) \
|
||||
do { \
|
||||
if (BRICK_CHECKING && unlikely((ptr) == (void*)0x5a5a5a5a5a5a5a5a)) { \
|
||||
if (BRICK_CHECKING && \
|
||||
unlikely( \
|
||||
((unsigned long)(ptr) & 0xffffffff) == 0x5a5a5a5a || \
|
||||
((unsigned long)(ptr) & 0xffffffff) == 0x6b6b6b6b)) { \
|
||||
BRICK_FAT("%d: pointer '" #ptr "' is DEAD\n", __LINE__); \
|
||||
goto label; \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user