From f07667a9e038e8ab3268ff4d700bb13ffc2d241f Mon Sep 17 00:00:00 2001 From: Amos Date: Sat, 10 Jul 2021 12:06:41 -0700 Subject: [PATCH] Optimize hexdump util --- r5dev/src/utility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/src/utility.cpp b/r5dev/src/utility.cpp index 7a21b8da..d808a77d 100644 --- a/r5dev/src/utility.cpp +++ b/r5dev/src/utility.cpp @@ -92,13 +92,13 @@ void HexDump(const char* szHeader, int nFunc, const void* pData, int nSize) auto pattern = std::make_unique("%v", spdlog::pattern_time_type::local, std::string("")); // Loop until the function returned to the first caller - while (k == 1) { Sleep(75); } + while (k == 1) { /*Sleep(75);*/ } k = 1; ascii[16] = '\0'; // Add new loggers here to replace the placeholder - if (nFunc == 0) { logger = spdlog::get("netchan_logger"); } + if (nFunc == 0) { logger = g_spdnetchan_logger; } // Add timestamp logger->set_level(spdlog::level::trace);