lib/vsprintf: do not show no_hash_pointers message multiple times
authorMarco Elver <elver@google.com>
Fri, 5 Mar 2021 19:42:05 +0000 (20:42 +0100)
committerPetr Mladek <pmladek@suse.com>
Fri, 19 Mar 2021 09:54:02 +0000 (10:54 +0100)
Do not show no_hash_pointers message multiple times if the option was
passed more than once (e.g. via generated command line).

Signed-off-by: Marco Elver <elver@google.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210305194206.3165917-1-elver@google.com
lib/vsprintf.c

index 41ddc35..4a14889 100644 (file)
@@ -2096,6 +2096,9 @@ EXPORT_SYMBOL_GPL(no_hash_pointers);
 
 static int __init no_hash_pointers_enable(char *str)
 {
+       if (no_hash_pointers)
+               return 0;
+
        no_hash_pointers = true;
 
        pr_warn("**********************************************************\n");