Skip to content

Commit

Permalink
stress-ng: add -K to option parsing
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Dec 18, 2024
1 parent 2cc16cd commit 1763340
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions core-opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ typedef enum {
OPT_dentry = 'D',
OPT_fork = 'f',
OPT_fallocate = 'F',
OPT_help = 'h',
OPT_io = 'i',
OPT_job = 'j',
OPT_help = 'h',
OPT_keep_name = 'k',
OPT_klog_check = 'K',
OPT_cpu_load = 'l',
OPT_vm = 'm',
OPT_metrics = 'M',
Expand Down Expand Up @@ -677,8 +678,6 @@ typedef enum {
OPT_klog,
OPT_klog_ops,

OPT_klog_check,

OPT_ksm,

OPT_kvm,
Expand Down
2 changes: 1 addition & 1 deletion stress-ng.c
Original file line number Diff line number Diff line change
Expand Up @@ -3227,7 +3227,7 @@ int stress_parse_opts(int argc, char **argv, const bool jobmode)

opterr = (!jobmode) ? opterr : 0;
next_opt:
if ((c = getopt_long(argc, argv, "?khMVvqnt:b:c:i:j:m:d:f:s:l:p:P:C:S:a:y:F:D:T:u:o:r:B:R:Y:x:",
if ((c = getopt_long(argc, argv, "?kKhMVvqnt:b:c:i:j:m:d:f:s:l:p:P:C:S:a:y:F:D:T:u:o:r:B:R:Y:x:",
stress_long_options, &option_index)) == -1) {
break;
}
Expand Down

0 comments on commit 1763340

Please sign in to comment.