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 <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b2bec7d commit 9f961c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)