diff --git a/interfaces/innerkits/signal_handler/dfx_signal_handler.c b/interfaces/innerkits/signal_handler/dfx_signal_handler.c index 2328b2e6cf5a87dc957598cb84f7d3e01ab6bc0c..f3836aeceeffcafb8ec3c1f2f117377310bcac53 100644 --- a/interfaces/innerkits/signal_handler/dfx_signal_handler.c +++ b/interfaces/innerkits/signal_handler/dfx_signal_handler.c @@ -253,7 +253,7 @@ static bool FillDumpRequest(int signo, siginfo_t *si, void *context) memcpy(g_request.appRunningId, g_appRunningId, sizeof(g_request.appRunningId)); if (!IsDumpSignal(signo) && g_GetStackIdFunc!= NULL) { g_request.stackId = g_GetStackIdFunc(); - DFXLOGI("g_GetStackIdFunc %{public}p.", (void*)g_request.stackId); + DFXLOGI("g_GetStackIdFunc %{private}p.", (void*)g_request.stackId); } GetThreadNameByTid(g_request.tid, g_request.threadName, sizeof(g_request.threadName)); diff --git a/interfaces/innerkits/unwinder/src/ark/dfx_hap.cpp b/interfaces/innerkits/unwinder/src/ark/dfx_hap.cpp index a5f9f3559604a68ffc80e78979742c6785b99d1e..c26a5ee548ab8f65e228de8b9f2f19c10eb64428 100644 --- a/interfaces/innerkits/unwinder/src/ark/dfx_hap.cpp +++ b/interfaces/innerkits/unwinder/src/ark/dfx_hap.cpp @@ -80,7 +80,7 @@ bool DfxHap::ParseHapFileInfo(uint64_t pc, std::shared_ptr map, JsFuncti if (DfxArk::Instance().ParseArkFileInfo(static_cast(pc), static_cast(map->begin), map->name.c_str(), arkSymbolExtractorPtr_, jsFunction) < 0) { - DFXLOGW("Failed to parse ark file info, pc: %{public}p, begin: %{public}p", + DFXLOGW("Failed to parse ark file info, pc: %{private}p, begin: %{private}p", reinterpret_cast(pc), reinterpret_cast(map->begin)); return false; } @@ -103,7 +103,7 @@ bool DfxHap::ParseHapMemInfo(pid_t pid, uint64_t pc, std::shared_ptr map } if (DfxArk::Instance().ParseArkFrameInfo(static_cast(pc), static_cast(map->begin), abcLoadOffset_, abcDataPtr_.get(), abcDataSize_, arkSymbolExtractorPtr_, jsFunction) < 0) { - DFXLOGW("Failed to parse ark frame info, pc: %{public}p, begin: %{public}p", + DFXLOGW("Failed to parse ark frame info, pc: %{private}p, begin: %{private}p", reinterpret_cast(pc), reinterpret_cast(map->begin)); return false; } diff --git a/interfaces/innerkits/unwinder/unwinder.cpp b/interfaces/innerkits/unwinder/unwinder.cpp index 821890baaa961d76cd488fcd806d4f63b754db6d..9333f40517a146c3461274ecdac2608c8b0f39f9 100644 --- a/interfaces/innerkits/unwinder/unwinder.cpp +++ b/interfaces/innerkits/unwinder/unwinder.cpp @@ -728,7 +728,7 @@ bool Unwinder::Impl::UnwindFrame(void *ctx, StepFrame& frame, bool& needAdjustPc // Check if this is a signal frame. if (pid_ != UNWIND_TYPE_LOCAL && pid_ != UNWIND_TYPE_CUSTOMIZE_LOCAL && regs_->StepIfSignalFrame(static_cast(frame.pc), memory_)) { - DFXLOGW("Step signal frame, pc: %{public}p", reinterpret_cast(frame.pc)); + DFXLOGW("Step signal frame, pc: %{private}p", reinterpret_cast(frame.pc)); StepInner(true, frame, ctx); return true; } @@ -887,7 +887,7 @@ bool Unwinder::Impl::Step(uintptr_t& pc, uintptr_t& sp, void *ctx) frame.fp = regs_->GetFp(); // Check if this is a signal frame. if (regs_->StepIfSignalFrame(frame.pc, memory_)) { - DFXLOGW("Step signal frame, pc: %{public}p", reinterpret_cast(frame.pc)); + DFXLOGW("Step signal frame, pc: %{private}p", reinterpret_cast(frame.pc)); ret = StepInner(true, frame, ctx); } else { ret = StepInner(false, frame, ctx); @@ -941,7 +941,7 @@ bool Unwinder::Impl::UnwindArkFrame(StepFrame& frame, const std::shared_ptrIsArkExecutable()) || frame.isJsFrame)) { if (!StepArkJsFrame(frame)) { - DFXLOGE("Failed to step ark Js frame, pc: %{public}p", reinterpret_cast(frame.pc)); + DFXLOGE("Failed to step ark Js frame, pc: %{private}p", reinterpret_cast(frame.pc)); lastErrorData_.SetAddrAndCode(frame.pc, UNW_ERROR_STEP_ARK_FRAME); return false; } @@ -1005,7 +1005,7 @@ void Unwinder::Impl::UpdateRegsState( unwinderResult = FpStep(frame.fp, frame.pc, ctx); if (unwinderResult && !isFpStep_) { if (pid_ != UNWIND_TYPE_CUSTOMIZE) { - DFXLOGI("First enter fp step, pc: %{public}p", reinterpret_cast(frame.pc)); + DFXLOGI("First enter fp step, pc: %{private}p", reinterpret_cast(frame.pc)); } isFpStep_ = true; } @@ -1285,7 +1285,7 @@ bool Unwinder::Impl::FillJsFrameLocal(DfxFrame& frame, JsFunction* jsFunction) if (DfxArk::Instance().ParseArkFrameInfoLocal(static_cast(frame.pc), static_cast(frame.map->begin), static_cast(frame.map->offset), jsFunction) < 0) { - DFXLOGW("Failed to parse ark frame info local, pc: %{public}p, begin: %{public}p", + DFXLOGW("Failed to parse ark frame info local, pc: %{private}p, begin: %{private}p", reinterpret_cast(frame.pc), reinterpret_cast(frame.map->begin)); return false; }