From e435cdd7601476a0acc5b9e8c5da17e606a154d2 Mon Sep 17 00:00:00 2001 From: Gin890 <79114795+Gin890@users.noreply.github.com> Date: Sun, 11 Oct 2026 22:53:53 +0000 Subject: [PATCH] PABotBase2_MessageDumper: fix copy-pasted LOG_LABEL_H32/I32 labels. The LOG_LABEL_H32 and LOG_LABEL_I32 cases in tostr(const MessageHeader*) both printed the label string of the U32 case, so hex and signed 32-bit log labels were mislabeled in the message dump output. Print the correct label for each case. --- Common/Cpp/StreamConnections/PABotBase2_MessageDumper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Cpp/StreamConnections/PABotBase2_MessageDumper.cpp b/Common/Cpp/StreamConnections/PABotBase2_MessageDumper.cpp index 6c525e9ad9..418dfee052 100644 --- a/Common/Cpp/StreamConnections/PABotBase2_MessageDumper.cpp +++ b/Common/Cpp/StreamConnections/PABotBase2_MessageDumper.cpp @@ -144,7 +144,7 @@ std::string tostr(const MessageHeader* header){ return str; case PABB2_MESSAGE_OPCODE_LOG_LABEL_H32:{ const Message_u32* message = (const Message_u32*)header; - str += "PABB2_MESSAGE_OPCODE_LOG_LABEL_U32: id = "; + str += "PABB2_MESSAGE_OPCODE_LOG_LABEL_H32: id = "; str += std::to_string(message->id); str += ": " + std::string( (const char*)(message + 1), @@ -168,7 +168,7 @@ std::string tostr(const MessageHeader* header){ } case PABB2_MESSAGE_OPCODE_LOG_LABEL_I32:{ const Message_u32* message = (const Message_u32*)header; - str += "PABB2_MESSAGE_OPCODE_LOG_LABEL_U32: id = "; + str += "PABB2_MESSAGE_OPCODE_LOG_LABEL_I32: id = "; str += std::to_string(message->id); str += ": " + std::string( (const char*)(message + 1),