Skip to content

Commit

Permalink
lib/vsprintf: do not show no_hash_pointers message multiple times
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Marco Elver authored and Petr Mladek committed Mar 19, 2021
1 parent b2bec7d commit 9f961c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9f961c2

Please sign in to comment.