Close private print in hilog.cpp file

This commit is contained in:
heppen 2023-07-31 10:30:19 +08:00
parent 18050221c4
commit fa9004f52e
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 4109037a7f708c6d23ccdff64a5638ef592c7598 Mon Sep 17 00:00:00 2001
From: heppen <hepeng68@huawei.com>
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

View File

@ -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 <hepeng68@huawei.com> - 1.0.0-2
- Close private print in hilog.cpp file.
* Thu Jun 15 2023 tianhang <tian_hang@hoperun.com> - 1.0.0-1
- Init and adapt to openeuler