diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2016-09-22 17:33:46 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-11-01 18:02:40 -0400 |
commit | 8cfd82f1c16287f56f4a57306d2c709c5df1b099 (patch) | |
tree | a9eeb4401cafb133f87eb2c31ad88e532d99817d | |
parent | 57653fbada3060ce4aecd9361ccba0689672c49d (diff) | |
download | trace-cmd-8cfd82f1c16287f56f4a57306d2c709c5df1b099.tar.gz |
trace-cmd list: Fix the error message to show the wrong option
The index uesd optind instead of 'i' returning some random char.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-cmd.c b/trace-cmd.c index e16338e3..758671eb 100644 --- a/trace-cmd.c +++ b/trace-cmd.c @@ -715,7 +715,7 @@ int main (int argc, char **argv) argv[i]); default: fprintf(stderr, "list: invalid option -- '%c'\n", - argv[optind][1]); + argv[i][1]); usage(argv); } } |