diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-27 16:44:58 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-27 16:44:58 +0200 |
commit | 25ce4bb8c50513e922da2709fedc9db112452fbc (patch) | |
tree | 3c19f48f74de6ed113f272f23a4e26cbb69b03b9 /tools/perf/util/help-unknown-cmd.c | |
parent | perf tools: Replace error() with pr_err() (diff) | |
download | linux-25ce4bb8c50513e922da2709fedc9db112452fbc.tar.xz linux-25ce4bb8c50513e922da2709fedc9db112452fbc.zip |
perf config: Do not die when parsing u64 or int config values
Just warn the user and ignore those values.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-tbf60nj3ierm6hrkhpothymx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/help-unknown-cmd.c')
-rw-r--r-- | tools/perf/util/help-unknown-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/help-unknown-cmd.c b/tools/perf/util/help-unknown-cmd.c index 1c88ad6425b8..15b95300d7f3 100644 --- a/tools/perf/util/help-unknown-cmd.c +++ b/tools/perf/util/help-unknown-cmd.c @@ -12,7 +12,7 @@ static int perf_unknown_cmd_config(const char *var, const char *value, void *cb __maybe_unused) { if (!strcmp(var, "help.autocorrect")) - autocorrect = perf_config_int(var,value); + return perf_config_int(&autocorrect, var,value); return 0; } |