From 2f122da5c2059e755256b7fd762f08e2eaa3582d Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 30 Aug 2021 13:52:05 -0700 Subject: [PATCH] xerrlogHexPrintf ellipsis --- src/log.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/log.cpp b/src/log.cpp index 00ddfce..a542d43 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -256,6 +256,9 @@ Level logger::init() void xerrlogHexPrintf(const void *buf, size_t buflen) { const auto cbuf = static_cast(buf); + bool elipsis = buflen > 64u; + if(elipsis) + buflen = 64u; // whole buffer for(size_t pos=0; pos