diff --git a/Kconfig b/Kconfig index 9867d893..216a132a 100644 --- a/Kconfig +++ b/Kconfig @@ -23,6 +23,15 @@ config MARS_DEBUG_DEFAULT ---help--- normally OFF +config MARS_DEBUG_MEM + bool "debug memory operations" + depends on MARS_DEBUG + default n + ---help--- + This adds considerable space and time overhead, but catches + many errors (including some that are not caught by kmemleak). + Use only for development and thorough testing! + config MARS_BIGMODULE tristate "compile all MARS modules into a single kernel module" depends on MARS diff --git a/brick_mem.h b/brick_mem.h index f5c6b4cf..c7eb21a2 100644 --- a/brick_mem.h +++ b/brick_mem.h @@ -6,7 +6,7 @@ #define BRICK_DEBUG_MEM 4096 -#ifndef CONFIG_MARS_DEBUG +#ifndef CONFIG_MARS_DEBUG_MEM #undef BRICK_DEBUG_MEM #endif