diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 4c48be80dcdf8b654a3f8fd71410e8cb3b940c45..428a4a2ce35028f016d7de71ecbe8f382b575ca0 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -1109,7 +1109,7 @@ static int perf_file_section__fprintf_info(struct perf_file_section *section, } if (feat < HEADER_TRACE_INFO || feat >= HEADER_LAST_FEATURE) { pr_warning("unknown feature %d\n", feat); - return -1; + return 0; } if (!feat_ops[feat].print) return 0;