diff --git a/0004-close-private-print-in-hilog.cpp-file.patch b/0004-close-private-print-in-hilog.cpp-file.patch new file mode 100644 index 0000000000000000000000000000000000000000..334a92d20f9c0daa8d51ec00034b6a0409d55e95 --- /dev/null +++ b/0004-close-private-print-in-hilog.cpp-file.patch @@ -0,0 +1,25 @@ +From 4109037a7f708c6d23ccdff64a5638ef592c7598 Mon Sep 17 00:00:00 2001 +From: heppen +Date: Mon, 31 Jul 2023 10:24:25 +0800 +Subject: [PATCH] Close private print in hilog.cpp file + +--- + frameworks/libhilog/hilog.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/frameworks/libhilog/hilog.cpp b/frameworks/libhilog/hilog.cpp +index e58c6d6..8da82c5 100644 +--- a/frameworks/libhilog/hilog.cpp ++++ b/frameworks/libhilog/hilog.cpp +@@ -77,7 +77,7 @@ int HiLogPrintArgs(const LogType type, const LogLevel level, const unsigned int + char *logBuf = buf; + int traceBufLen = 0; + int ret; +- bool priv = true; ++ bool priv = false; + + #ifdef __clang__ + /* code specific to clang compiler */ +-- +2.33.0 + diff --git a/hilog.spec b/hilog.spec index 05eea0e6f69cf4f61aea401a879c480385cddf6b..5d707742b59e54b66c121be745001f1febe9c082 100644 --- a/hilog.spec +++ b/hilog.spec @@ -5,7 +5,7 @@ Name: hilog Version: 1.0.0 -Release: 1 +Release: 2 Summary: OpenEuler supports hilog for distributed softbus capability License: Apache License 2.0 Url: https://gitee.com/openharmony/hiviewdfx_hilog @@ -13,6 +13,7 @@ Source0: https://gitee.com/openharmony/hiviewdfx_hilog/repository/archive/%{open Patch0000: 0001-init-and-adapt-to-openeuler.patch Patch0001: 0002-fix-build-gn-files-config.patch Patch0002: 0003-feat-set-priv-false.patch +Patch0003: 0004-close-private-print-in-hilog.cpp-file.patch BuildRequires: distributed-build, libboundscheck,libatomic Requires: libboundscheck, libatomic @@ -80,6 +81,10 @@ install -m 554 %{hilog_dir}/hilog/interfaces/native/innerkits/include/hilog_base %{_libdir}/*.a %changelog + +* Mon Jul 31 2023 Peng He - 1.0.0-2 +- Close private print in hilog.cpp file. + * Thu Jun 15 2023 tianhang - 1.0.0-1 - Init and adapt to openeuler