From 7adb444f2a9e973812a00e0cbf70dee43f4ab451 Mon Sep 17 00:00:00 2001 From: huyx Date: Wed, 8 May 2024 15:55:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?hdf=5Fdbg=E8=BE=93=E5=85=A5-1=E5=9B=9E?= =?UTF-8?q?=E6=98=BE=E5=B8=AE=E5=8A=A9=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyx --- framework/tools/hdf_dbg/hdf_dbg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/tools/hdf_dbg/hdf_dbg.cpp b/framework/tools/hdf_dbg/hdf_dbg.cpp index 754dab779..89b8e064a 100644 --- a/framework/tools/hdf_dbg/hdf_dbg.cpp +++ b/framework/tools/hdf_dbg/hdf_dbg.cpp @@ -98,7 +98,7 @@ static void PrintHelp() static int StrToInt(std::string tempstr) { - int32_t num = 0; + int32_t num = 5; if (std::all_of(tempstr.begin(), tempstr.end(), ::isdigit)) { num = std::stoi(tempstr); } -- Gitee From ccce22d9de74f412113c0d2d2699c2fd2e733faf Mon Sep 17 00:00:00 2001 From: huyx Date: Thu, 9 May 2024 11:00:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?dgb=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyx --- framework/tools/hdf_dbg/hdf_dbg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/tools/hdf_dbg/hdf_dbg.cpp b/framework/tools/hdf_dbg/hdf_dbg.cpp index 89b8e064a..a90308abd 100644 --- a/framework/tools/hdf_dbg/hdf_dbg.cpp +++ b/framework/tools/hdf_dbg/hdf_dbg.cpp @@ -98,7 +98,7 @@ static void PrintHelp() static int StrToInt(std::string tempstr) { - int32_t num = 5; + int32_t num = GET_INFO_FUNC_NUMS; if (std::all_of(tempstr.begin(), tempstr.end(), ::isdigit)) { num = std::stoi(tempstr); } -- Gitee