diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index f8d9a545dd6ec0b4c0c457173cc1c23d2208d42a..d6d1c6cdcfe6593b1a94b6cb281bf5256676f6a1 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -494,9 +494,9 @@ static int __cmd_record(struct perf_record *rec, int argc, const char **argv) return err; } - if (!!rec->no_buildid + if (!rec->no_buildid && !perf_header__has_feat(&session->header, HEADER_BUILD_ID)) { - pr_err("Couldn't generating buildids. " + pr_err("Couldn't generate buildids. " "Use --no-buildid to profile anyway.\n"); return -1; }