diff --git a/src/base/cprintf_formats.hh b/src/base/cprintf_formats.hh index f55fb955e6..cca41e98ed 100644 --- a/src/base/cprintf_formats.hh +++ b/src/base/cprintf_formats.hh @@ -312,6 +312,12 @@ format_integer(std::ostream &out, unsigned char data, Format &fmt) inline void format_integer(std::ostream &out, signed char data, Format &fmt) { _format_integer(out, (int)data, fmt); } +inline void +format_integer(std::ostream &out, const unsigned char *data, Format &fmt) +{ _format_integer(out, (uintptr_t)data, fmt); } +inline void +format_integer(std::ostream &out, const signed char *data, Format &fmt) +{ _format_integer(out, (uintptr_t)data, fmt); } // // floating point formats