Skip to contentSkip to conversation

perf config: Add a error message when perf_config_set__new() failed in cmd_config()

PATCH Superseded Taeung Song 1 participant 1 message May 9, 2017 perf events

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 4/7 perf config: Add a error message when perf_config_set__new() failed in cmd_config()

Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
---
 tools/perf/builtin-config.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tools/perf/builtin-config.c +3 -1
index 6a4d8cd..e9fe673 100644
@@ -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:
Signature · 1 line
2.7.4