Skip to content

Commit cbb2973

Browse files
EricccTaiwanhtejun
authored andcommitted
tools/sched_ext: scx_sdt: Remove unused '-f' option
The '-f' option is defined in getopt() but not handled in the switch statement or documented in the help text. Providing '-f' 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 0c36a6f commit cbb2973

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/sched_ext/scx_sdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ int main(int argc, char **argv)
5454
optind = 1;
5555
skel = SCX_OPS_OPEN(sdt_ops, scx_sdt);
5656

57-
while ((opt = getopt(argc, argv, "fvh")) != -1) {
57+
while ((opt = getopt(argc, argv, "vh")) != -1) {
5858
switch (opt) {
5959
case 'v':
6060
verbose = true;

0 commit comments

Comments
 (0)