From f4e8ba88aea4cea221ac3b66503ff43b041eae90 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 29 Jan 2020 10:14:37 +0100 Subject: [PATCH] Omit "B" from reported sizes There should be a space between the number and a unit. Since everything is always reported in bytes, there is no need to have a unit. Signed-off-by: Simon Rozman --- lib/EAPBase/src/Method.cpp | 2 +- lib/EAPBase/src/Module.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/EAPBase/src/Method.cpp b/lib/EAPBase/src/Method.cpp index dcdc8ac..7aa2ef1 100644 --- a/lib/EAPBase/src/Method.cpp +++ b/lib/EAPBase/src/Method.cpp @@ -238,7 +238,7 @@ EapPeerMethodResponseAction eap::method_eap::process_request_packet( // Check packet size. DWORD size_packet = ntohs(*reinterpret_cast(hdr->Length)); if (size_packet > dwReceivedPacketSize) - throw invalid_argument(string_printf(__FUNCTION__ " Incorrect EAP packet length (expected: %uB, received: %uB).", size_packet, dwReceivedPacketSize)); + throw invalid_argument(string_printf(__FUNCTION__ " Incorrect EAP packet length (expected: %u, received: %u).", size_packet, dwReceivedPacketSize)); // Save request packet ID to make matching response packet in get_response_packet() later. m_id = hdr->Id; diff --git a/lib/EAPBase/src/Module.cpp b/lib/EAPBase/src/Module.cpp index fc22e62..abb87fb 100644 --- a/lib/EAPBase/src/Module.cpp +++ b/lib/EAPBase/src/Module.cpp @@ -145,7 +145,7 @@ BYTE* eap::module::alloc_memory(_In_ size_t size) const { BYTE *p = (BYTE*)HeapAlloc(m_heap, 0, size); if (!p) - throw win_runtime_error(winstd::string_printf(__FUNCTION__ " Error allocating memory for BLOB (%zuB).", size)); + throw win_runtime_error(winstd::string_printf(__FUNCTION__ " Error allocating memory for BLOB (%zu).", size)); return p; }