diff options
| author | Petr Mladek <pmladek@suse.com> | 2026-05-26 11:11:30 +0200 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2026-05-26 11:11:30 +0200 |
| commit | 3334bbb60518582c3b430ce98f74d62cf9d5590d (patch) | |
| tree | 63d3fb2462018a978999166ca1db445cb3104dc3 /lib | |
| parent | ed95cd0399e2cfbad528722dee80af47f21e9de2 (diff) | |
| parent | b09b6d0c404d62480dbc23865c763c63598511f5 (diff) | |
| download | linux-next-history-3334bbb60518582c3b430ce98f74d62cf9d5590d.tar.gz | |
Merge branch 'for-7.2' into for-next
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vsprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 31baec7acae4f..6528182d3d990 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -2362,13 +2362,13 @@ static int __init hash_pointers_mode_parse(char *str) if (!str) { pr_warn("Hash pointers mode empty; falling back to auto.\n"); hash_pointers_mode = HASH_PTR_AUTO; - } else if (strncmp(str, "auto", 4) == 0) { + } else if (strcmp(str, "auto") == 0) { pr_info("Hash pointers mode set to auto.\n"); hash_pointers_mode = HASH_PTR_AUTO; - } else if (strncmp(str, "never", 5) == 0) { + } else if (strcmp(str, "never") == 0) { pr_info("Hash pointers mode set to never.\n"); hash_pointers_mode = HASH_PTR_NEVER; - } else if (strncmp(str, "always", 6) == 0) { + } else if (strcmp(str, "always") == 0) { pr_info("Hash pointers mode set to always.\n"); hash_pointers_mode = HASH_PTR_ALWAYS; } else { |
