From f00e1d74931f74d66f172e78f669309a5b60e7ba Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 19 Jul 2024 16:11:22 +1000 Subject: Fix track ids containing '\n' not decoding properly This has been the cause of the elusive "selecting a track opens it like an index" bug :) --- src/util/include/debug.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/include/debug.hpp') diff --git a/src/util/include/debug.hpp b/src/util/include/debug.hpp index 27fb2999..06e3833e 100644 --- a/src/util/include/debug.hpp +++ b/src/util/include/debug.hpp @@ -31,8 +31,8 @@ inline std::string format_hex_string(std::span data) { oss << " "; } int byte_val = (int)byte; - oss << "[0x" << std::uppercase << std::setfill('0') << std::setw(2) - << std::hex << byte_val << ']'; + oss << std::uppercase << std::setfill('0') << std::setw(2) << std::hex + << byte_val << ' '; if (byte_val >= 32 && byte_val < 127) { ascii_values << (char)byte; } else { -- cgit v1.2.3