Change fatal to error when argc not equal 2

This commit is contained in:
liyancheng 2024-11-28 16:07:09 +08:00
parent f116d039d2
commit e3620dc89a
2 changed files with 34 additions and 2 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
Name: autofdo
Version: 0.19
Release: 3.20231228.git0e296280
Release: 4.20231228.git0e296280
Summary: A tool to convert perf.data profile to AutoFDO profile
License: Apache-2.0
URL: https://github.com/google/autofdo
@ -8,6 +8,7 @@ URL: https://github.com/google/autofdo
# so remove the GIT information and repackage it.
Source0: %{name}-%{version}.tar.xz
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
Requires: glibc openssl-libs elfutils libgcc libstdc++ zlib
@ -37,7 +38,13 @@ export QA_CHECK_RAPTH=0
%{_bindir}/profile_merger
%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
- ID:NA
- SUG:NA