diff options
author | Marco Elver <elver@google.com> | 2021-03-05 22:42:05 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2021-03-19 12:54:02 +0300 |
commit | 9f961c2e08741579aa53095d0dbffbcb25a9ae66 (patch) | |
tree | 1e6f8dd89b11483a03186a76a42042944654dfce /lib/vsprintf.c | |
parent | b2bec7d8a42a3885d525e821d9354b6b08fd6adf (diff) | |
download | linux-9f961c2e08741579aa53095d0dbffbcb25a9ae66.tar.xz |
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
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r-- | lib/vsprintf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 41ddc353ebb8..4a14889ccb35 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"); |