From df4df71aa200d7536a22d69f8e5e25cf6563e593 Mon Sep 17 00:00:00 2001 From: yuyanqinghw Date: Mon, 29 Jul 2024 09:04:27 +0800 Subject: [PATCH] fix code alarms Signed-off-by: yuyanqinghw --- include/perf_events.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/perf_events.h b/include/perf_events.h index 5a773e6..62cd70f 100644 --- a/include/perf_events.h +++ b/include/perf_events.h @@ -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 GetStaticConfigId(const std::string &event_name)