mirror of
https://github.com/torvalds/linux.git
synced 2026-03-07 23:04:33 +01:00
tools/mm/slabinfo: fix --partial long option mapping
The long option "--partial" was incorrectly mapped to lowercase 'p' in the opts[] array, but the getopt string and switch case handle uppercase 'P'. This mismatch caused --partial to be rejected. Fix the long_options mapping to use 'P' so --partial works correctly alongside the existing -P short option. Link: https://lkml.kernel.org/r/20251208105240.2719773-1-kaushlendra.kumar@intel.com Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com> Reviewed-by: SeongJae Park <sj@kernel.org> Tested-by: SeongJae Park <sj@kernel.org> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
9f5edd785d
commit
8b8017d7c4
1 changed files with 1 additions and 1 deletions
|
|
@ -1405,7 +1405,7 @@ struct option opts[] = {
|
|||
{ "numa", no_argument, NULL, 'n' },
|
||||
{ "lines", required_argument, NULL, 'N'},
|
||||
{ "ops", no_argument, NULL, 'o' },
|
||||
{ "partial", no_argument, NULL, 'p'},
|
||||
{ "partial", no_argument, NULL, 'P'},
|
||||
{ "report", no_argument, NULL, 'r' },
|
||||
{ "shrink", no_argument, NULL, 's' },
|
||||
{ "Size", no_argument, NULL, 'S'},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue