Skip to content

Commit 9f961c2

Browse files
melverpmladek
authored andcommitted
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 <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
1 parent b2bec7d commit 9f961c2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/vsprintf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,6 +2096,9 @@ EXPORT_SYMBOL_GPL(no_hash_pointers);
20962096

20972097
static int __init no_hash_pointers_enable(char *str)
20982098
{
2099+
if (no_hash_pointers)
2100+
return 0;
2101+
20992102
no_hash_pointers = true;
21002103

21012104
pr_warn("**********************************************************\n");

0 commit comments

Comments
 (0)