diff --git a/uppsrc/Core/Debug.cpp b/uppsrc/Core/Debug.cpp index 1770703fb..6560f2ccb 100644 --- a/uppsrc/Core/Debug.cpp +++ b/uppsrc/Core/Debug.cpp @@ -190,6 +190,16 @@ void LogHex(const WString& s) HexDump(VppLog(), ~s, sizeof(wchar) * s.GetLength()); } +void LogHex(uint64 i) +{ + VppLog() << "0x" << Format64Hex(i) << '\n'; +} + +void LogHex(void *p) +{ + VppLog() << p << '\n'; +} + void SetMagic(byte *t, int count) { for(int i = 0; i < count; i++) diff --git a/uppsrc/Core/Diag.h b/uppsrc/Core/Diag.h index 505717443..505ac36ec 100644 --- a/uppsrc/Core/Diag.h +++ b/uppsrc/Core/Diag.h @@ -34,6 +34,8 @@ void HexDump(Stream& s, const void *ptr, int size, int maxsize = INT_MAX); void LogHex(const String& s); void LogHex(const WString& s); +void LogHex(uint64 i); +void LogHex(void *p); void SetMagic(byte *t, int count); void CheckMagic(byte *t, int count);