From 284252ccd65d45c31c7005777227b89096ea01ac Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 24 Dec 2015 16:02:07 +0000 Subject: Remove duplicate error number from Windows log messages. GetErrorMessage() already includes the error number in the text string that it returns, so we don't need to include it again. --- lib/common/Logging.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/common/Logging.h b/lib/common/Logging.h index f61bf1dc..01358617 100644 --- a/lib/common/Logging.h +++ b/lib/common/Logging.h @@ -96,8 +96,7 @@ #ifdef WIN32 #define BOX_WIN_ERRNO_MESSAGE(error_number, stuff) \ - stuff << ": " << GetErrorMessage(error_number) << \ - " (" << error_number << ")" + stuff << ": " << GetErrorMessage(error_number) #define BOX_NATIVE_ERRNO_MESSAGE(error_number, stuff) \ BOX_WIN_ERRNO_MESSAGE(error_number, stuff) #define BOX_LOG_WIN_ERROR(stuff) \ -- cgit v1.2.3