Commit 9f961c2e authored by Marco Elver's avatar Marco Elver Committed by Petr Mladek
Browse files

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: default avatarMarco Elver <elver@google.com>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210305194206.3165917-1-elver@google.com
parent b2bec7d8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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");