From bfc2b5f02d2bdb375186de69d50904821ad5cbc3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 5 Jan 2018 18:59:28 -0500 Subject: [PATCH] Fix double leading "0x" prefix (GH #557) Thanks to John McCabe for reporting --- fipstest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fipstest.cpp b/fipstest.cpp index 3a1d9070..d2ece6df 100644 --- a/fipstest.cpp +++ b/fipstest.cpp @@ -328,14 +328,14 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule if (h == g_BaseAddressOfMAC) { std::ostringstream oss; - oss << "Crypto++ DLL loaded at base address 0x" << std::hex << h << ".\n"; + oss << "Crypto++ DLL loaded at base address " << std::hex << h << ".\n"; OutputDebugStringA(oss.str().c_str()); } else { std::ostringstream oss; - oss << "Crypto++ DLL integrity check may fail. Expected module base address is 0x"; - oss << std::hex << g_BaseAddressOfMAC << ", but module loaded at 0x" << h << ".\n"; + oss << "Crypto++ DLL integrity check may fail. Expected module base address is "; + oss << std::hex << g_BaseAddressOfMAC << ", but module loaded at " << h << ".\n"; OutputDebugStringA(oss.str().c_str()); } #endif