Skip to content

Commit 0c36a6f

Browse files
EricccTaiwanhtejun
authored andcommitted
tools/sched_ext: scx_central: Remove unused '-p' option
The '-p' option is defined in getopt() but not handled in the switch statement or documented in the help text. Providing '-p' currently triggers the default error path. Remove it to sync the optstring with the actual implementation. Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 1f06386 commit 0c36a6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/sched_ext/scx_central.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int main(int argc, char **argv)
6666
assert(skel->rodata->nr_cpu_ids > 0);
6767
assert(skel->rodata->nr_cpu_ids <= INT32_MAX);
6868

69-
while ((opt = getopt(argc, argv, "s:c:pvh")) != -1) {
69+
while ((opt = getopt(argc, argv, "s:c:vh")) != -1) {
7070
switch (opt) {
7171
case 's':
7272
skel->rodata->slice_ns = strtoull(optarg, NULL, 0) * 1000;

0 commit comments

Comments
 (0)