From a2ba8ec3d90a4e08816bf5041892f2a54be22a62 Mon Sep 17 00:00:00 2001 From: zengxj Date: Fri, 25 Oct 2024 11:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zengxj Change-Id: If0545407db48f0e28ba2dda7ae9ea11a98e4b998 --- tools/pagemap_parse/pagemap_parse.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/pagemap_parse/pagemap_parse.cpp b/tools/pagemap_parse/pagemap_parse.cpp index bf711e95f..7b49b20c8 100644 --- a/tools/pagemap_parse/pagemap_parse.cpp +++ b/tools/pagemap_parse/pagemap_parse.cpp @@ -63,7 +63,6 @@ void PrintUsage(const string& program) int ParseMapsLine(const string& line, MapInfo& mapping) { std::istringstream iss(line); - std::string token; uint64_t start, end; // 读取起始地址和结束地址 @@ -128,7 +127,7 @@ void PrintPage(const MapInfo& mapping, const PageInfo& page) bool IsValidPid(const string& pid_str) { if (pid_str.empty()) { - return -1; + return false; } bool ret = all_of(pid_str.begin(), pid_str.end(), [](char c) { return isdigit(c);