* [PATCH v3 4/7] perf config: Add a error message when perf_config_set__new() failed in cmd_config()
@ 2017-05-09 11:04 Taeung Song
0 siblings, 0 replies; only message in thread
From: Taeung Song @ 2017-05-09 11:04 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo; +Cc: linux-kernel, Jiri Olsa, Namhyung Kim
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
---
tools/perf/builtin-config.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-config.c b/tools/perf/builtin-config.c
index 6a4d8cd..e9fe673 100644
--- a/tools/perf/builtin-config.c
+++ b/tools/perf/builtin-config.c
@@ -186,8 +186,10 @@ int cmd_config(int argc, const char **argv)
* because of reinitializing with options config file location.
*/
set = perf_config_set__new();
- if (!set)
+ if (!set) {
+ pr_err("Failed to load configs from %s\n", config_filename);
goto out_err;
+ }
switch (actions) {
case ACTION_LIST:
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-09 11:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-09 11:04 [PATCH v3 4/7] perf config: Add a error message when perf_config_set__new() failed in cmd_config() Taeung Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).