Skip to contentSkip to conversation

perf config: Return -1 if show_spec_config() cannot show the 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 3/7 perf config: Return -1 if show_spec_config() cannot show the config

If the config isn't found in the config set, show_spec_config() cannot show the config. But it return 0 on the situation though, so fix it.

Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
---
 tools/perf/builtin-config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/builtin-config.c +1 -1
index ece4558..6a4d8cd 100644
@@ -97,7 +97,7 @@ static int show_spec_config(struct perf_config_set *set, const char *var)
 		}
 	}
 
-	return 0;
+	return -1;
 }
 
 static int show_config(struct perf_config_set *set)
Signature · 1 line
2.7.4