From a4cc92357e5f8de9755a91dd3cdd7b4ba77b5330 Mon Sep 17 00:00:00 2001 From: Changhua Date: Sun, 18 Feb 2024 14:45:05 +0800 Subject: [PATCH] Print buffer address --- WeChatFerry/spy/log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeChatFerry/spy/log.cpp b/WeChatFerry/spy/log.cpp index 50e8d58..6242800 100644 --- a/WeChatFerry/spy/log.cpp +++ b/WeChatFerry/spy/log.cpp @@ -40,7 +40,7 @@ static char buf[BUF_SIZE] = { 0 }; void log_buffer(uint8_t *buffer, size_t len) { - size_t j = sprintf_s(buf, BUF_SIZE, "BUF[%ld]: ", len); + size_t j = sprintf_s(buf, BUF_SIZE, "BUF@%08X[%ld]: ", (uint32_t)buffer, len); for (size_t i = 0; i < len; i++) { j += sprintf_s(buf + j, BUF_SIZE, "%02X ", buffer[i]); if (j > BUF_SIZE - 3) {