From 581810401d7d2aebae3747b04163eb737c4833d3 Mon Sep 17 00:00:00 2001 From: kotori0 Date: Wed, 2 Feb 2022 18:44:54 +0800 Subject: [PATCH] Use PLOGE --- core/src/main/cpp/main/src/context.cpp | 2 +- daemon/src/main/cpp/obfuscation.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/cpp/main/src/context.cpp b/core/src/main/cpp/main/src/context.cpp index f90bab6e..3c1a6010 100644 --- a/core/src/main/cpp/main/src/context.cpp +++ b/core/src/main/cpp/main/src/context.cpp @@ -71,7 +71,7 @@ namespace lspd { addr_ = addr; size_ = size; } else { - LOGE("Read dex failed: %s", strerror(errno)); + PLOGE("Read dex"); } } diff --git a/daemon/src/main/cpp/obfuscation.cpp b/daemon/src/main/cpp/obfuscation.cpp index d7e68394..607590ad 100644 --- a/daemon/src/main/cpp/obfuscation.cpp +++ b/daemon/src/main/cpp/obfuscation.cpp @@ -129,7 +129,7 @@ Java_org_lsposed_lspd_service_ObfuscationManager_preloadDex(JNIEnv *, jclass ) { auto *addr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fileno(f.get()), 0); if (addr == MAP_FAILED) { - LOGE("Read dex failed: %s", strerror(errno)); + PLOGE("Read dex"); return -1; }