From 103a932ff0550030a993ff94ef8424a43dc86dd1 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Sat, 7 May 2022 21:47:52 -0400 Subject: [PATCH] include length of buffers for Utils dump and symbols trace; --- Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils.cpp b/Utils.cpp index b55b9550..29267ea9 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -78,7 +78,7 @@ void Utils::dump(int level, const std::string& title, const uint8_t* data, uint3 { assert(data != NULL); - ::Log(level, "DUMP", "%s", title.c_str()); + ::Log(level, "DUMP", "%s (len %u)", title.c_str(), length); uint32_t offset = 0U; @@ -162,7 +162,7 @@ void Utils::symbols(const std::string& title, const uint8_t* data, uint32_t leng { assert(data != NULL); - ::Log(2U, "SYMBOLS", "%s", title.c_str()); + ::Log(2U, "SYMBOLS", "%s (len %u)", title.c_str(), length); uint32_t offset = 0U; uint32_t count = 0U;