From 3ca3baf81c72e7c647c2eb4dcd662688087dbd26 Mon Sep 17 00:00:00 2001 From: fwx1262723 Date: Tue, 30 Jan 2024 20:17:17 +0800 Subject: [PATCH] print path in LOG_INFO Signed-off-by: fwx1262723 --- .../innerkits/code_sign_utils/src/code_sign_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/innerkits/code_sign_utils/src/code_sign_utils.cpp b/interfaces/innerkits/code_sign_utils/src/code_sign_utils.cpp index bc05b6c..2a3a6c5 100644 --- a/interfaces/innerkits/code_sign_utils/src/code_sign_utils.cpp +++ b/interfaces/innerkits/code_sign_utils/src/code_sign_utils.cpp @@ -179,7 +179,7 @@ int32_t CodeSignUtils::EnableCodeSignForFile(const std::string &path, const stru ret = CS_SUCCESS; } while (0); close(fd); - LOG_INFO(LABEL, "Enforcing file complete"); + LOG_INFO(LABEL, "Enforcing file complete and ret = %{public}d", ret); return ret; } @@ -212,8 +212,8 @@ int32_t CodeSignUtils::EnforceCodeSignForFile(const std::string &path, const uin int32_t CodeSignUtils::EnforceCodeSignForAppWithOwnerId(const std::string &ownerId, const std::string &path, const EntryMap &entryPathMap, FileType type, const std::string &moduleName) { - LOG_INFO(LABEL, "Start to enforce codesign FileType:%{public}d, entryPathMap size:%{public}u", - type, static_cast(entryPathMap.size())); + LOG_INFO(LABEL, "Start to enforce codesign FileType:%{public}d, entryPathMap size:%{public}u, path = %{public}s", + type, static_cast(entryPathMap.size()), path.c_str()); if (type == FILE_ENTRY_ADD || type == FILE_ENTRY_ONLY || type == FILE_ALL) { StoredEntryMapInsert(moduleName, entryPathMap); if (type == FILE_ENTRY_ADD) { -- Gitee