!24 【Bugfix】Change fatal to error when argc not equal 2
From: @li-yancheng Reviewed-by: @benniaobufeijiushiji Signed-off-by: @benniaobufeijiushiji
This commit is contained in:
commit
52d04541df
@ -0,0 +1,25 @@
|
|||||||
|
From 7df1845234f8ac47a825f1f783a1130ad4627122 Mon Sep 17 00:00:00 2001
|
||||||
|
From: liyancheng <412998149@qq.com>
|
||||||
|
Date: Thu, 28 Nov 2024 15:52:34 +0800
|
||||||
|
Subject: [PATCH] [DUMP_GCOV] Change fatal to error when argc not equal 2
|
||||||
|
|
||||||
|
---
|
||||||
|
dump_gcov.cc | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/dump_gcov.cc b/dump_gcov.cc
|
||||||
|
index 49a2ba6..ce55143 100644
|
||||||
|
--- a/dump_gcov.cc
|
||||||
|
+++ b/dump_gcov.cc
|
||||||
|
@@ -25,7 +25,7 @@ int main(int argc, char **argv) {
|
||||||
|
absl::ParseCommandLine(argc, argv);
|
||||||
|
|
||||||
|
if (argc != 2) {
|
||||||
|
- LOG(FATAL) << "Please use: dump_gcov file_path\n";
|
||||||
|
+ LOG(ERROR) << "Please use: dump_gcov file_path\n";
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
devtools_crosstool_autofdo::SymbolMap symbol_map;
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
11
autofdo.spec
11
autofdo.spec
@ -1,6 +1,6 @@
|
|||||||
Name: autofdo
|
Name: autofdo
|
||||||
Version: 0.19
|
Version: 0.19
|
||||||
Release: 3.20231228.git0e296280
|
Release: 4.20231228.git0e296280
|
||||||
Summary: A tool to convert perf.data profile to AutoFDO profile
|
Summary: A tool to convert perf.data profile to AutoFDO profile
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/google/autofdo
|
URL: https://github.com/google/autofdo
|
||||||
@ -8,6 +8,7 @@ URL: https://github.com/google/autofdo
|
|||||||
# so remove the GIT information and repackage it.
|
# so remove the GIT information and repackage it.
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
Patch0: 0001-Build-Static-Library.patch
|
Patch0: 0001-Build-Static-Library.patch
|
||||||
|
Patch1: 0002-DUMP_GCOV-Change-fatal-to-error-when-argc-not-equal-2.patch
|
||||||
BuildRequires: gcc gcc-c++ libtool git cmake elfutils-libelf-devel openssl-devel pkg-config ninja-build gtest libunwind-devel protobuf-devel chrpath
|
BuildRequires: gcc gcc-c++ libtool git cmake elfutils-libelf-devel openssl-devel pkg-config ninja-build gtest libunwind-devel protobuf-devel chrpath
|
||||||
Requires: glibc openssl-libs elfutils libgcc libstdc++ zlib
|
Requires: glibc openssl-libs elfutils libgcc libstdc++ zlib
|
||||||
|
|
||||||
@ -37,7 +38,13 @@ export QA_CHECK_RAPTH=0
|
|||||||
%{_bindir}/profile_merger
|
%{_bindir}/profile_merger
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Dec 22 2023 zhaozhenyu <zhaozhenyu17@huawie.com> - 0.19-3.20231228.git0e296280
|
* Thu Nov 28 2024 liyancheng <412998149@qq.com> - 0.19-4.20231228.git0e296280
|
||||||
|
- Type:Bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Change fatal to error when argc not equal 2
|
||||||
|
|
||||||
|
* Fri Dec 22 2023 zhaozhenyu <zhaozhenyu17@huawei.com> - 0.19-3.20231228.git0e296280
|
||||||
- Type:Update
|
- Type:Update
|
||||||
- ID:NA
|
- ID:NA
|
||||||
- SUG:NA
|
- SUG:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user