fix code alarms

Signed-off-by: yuyanqinghw <yuyanqing539@huawei.com>
This commit is contained in:
yuyanqinghw 2024-07-29 09:04:27 +08:00
parent ac4d6dc12d
commit df4df71aa2

View File

@ -473,7 +473,8 @@ public:
} else {
HLOGW("type not found for %d in %zu", type_id, TYPE_CONFIGS.size());
}
return StringPrintf("0x%llx", config_id);;
std::string configName = StringPrintf("0x%llx", config_id);
return configName;
};
static const std::tuple<bool, perf_type_id, __u64> GetStaticConfigId(const std::string &event_name)