From: Marco Elver Date: Fri, 5 Mar 2021 19:42:05 +0000 (+0100) Subject: lib/vsprintf: do not show no_hash_pointers message multiple times X-Git-Tag: accepted/tizen/unified/20230118.172025~7371^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f961c2e08741579aa53095d0dbffbcb25a9ae66;p=platform%2Fkernel%2Flinux-rpi.git lib/vsprintf: do not show no_hash_pointers message multiple times 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 Reviewed-by: Petr Mladek Signed-off-by: Petr Mladek Link: https://lore.kernel.org/r/20210305194206.3165917-1-elver@google.com --- diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 41ddc35..4a14889 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -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");