diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-07-19 16:11:22 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-07-19 16:11:22 +1000 |
| commit | f00e1d74931f74d66f172e78f669309a5b60e7ba (patch) | |
| tree | f6e633430f5a2b85a3909ff2959c4cb709cf4ed4 /src/util/include | |
| parent | ac54cab319b7525630e8376c0a6d236df8ccb8fd (diff) | |
| download | tangara-fw-f00e1d74931f74d66f172e78f669309a5b60e7ba.tar.gz | |
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 :)
Diffstat (limited to 'src/util/include')
| -rw-r--r-- | src/util/include/debug.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<const std::byte> 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 { |
