kmemleak: Improve the "Early log buffer exceeded" error message
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 11 Sep 2009 09:42:09 +0000 (10:42 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 11 Sep 2009 09:42:09 +0000 (10:42 +0100)
Based on a suggestion from Jaswinder, clarify what the user would need
to do to avoid this error message from kmemleak.

Reported-by: Jaswinder Singh Rajput <jaswinder@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
mm/kmemleak.c

index 39da954..4ea4510 100644 (file)
@@ -792,7 +792,8 @@ static void __init log_early(int op_type, const void *ptr, size_t size,
        struct early_log *log;
 
        if (crt_early_log >= ARRAY_SIZE(early_log)) {
-               pr_warning("Early log buffer exceeded\n");
+               pr_warning("Early log buffer exceeded, "
+                          "please increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE\n");
                kmemleak_disable();
                return;
        }