summaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-04-15 22:03:00 +0000
committerChris Wilson <chris+github@qwirx.com>2015-04-15 22:03:00 +0000
commit16bfb3c7f6335d988ebf907ac823418a592f58e3 (patch)
treed0c9b29ece4f82353bc4c64134c7d8dd50ac0811 /lib/common
parent71a4ffb7fbdf9775f7d1a2f79633173cb08e1aa2 (diff)
Define BOX_SOCKET_ERROR_MESSAGE, replace more BOX_LOG_SOCKET_ERROR calls with it.
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/Logging.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/common/Logging.h b/lib/common/Logging.h
index 26199701..856c0499 100644
--- a/lib/common/Logging.h
+++ b/lib/common/Logging.h
@@ -139,13 +139,13 @@
exception, subtype)
#ifdef WIN32
-# define BOX_LOG_SOCKET_ERROR(_type, _name, _port, stuff) \
- BOX_LOG_WIN_ERROR_NUMBER(stuff << " (type " << _type << ", name " << \
- _name << ", port " << _port << ")", WSAGetLastError())
+# define BOX_SOCKET_ERROR_MESSAGE(_type, _name, _port, stuff) \
+ BOX_WIN_ERRNO_MESSAGE(WSAGetLastError(), stuff << " (type " << _type << \
+ ", name " << _name << ", port " << _port << ")")
#else
-# define BOX_LOG_SOCKET_ERROR(_type, _name, _port, stuff) \
- BOX_LOG_NATIVE_ERROR(stuff << " (type " << _type << ", name " << \
- _name << ", port " << _port << ")")
+# define BOX_SOCKET_ERROR_MESSAGE(_type, _name, _port, stuff) \
+ BOX_SYS_ERROR_MESSAGE(stuff << " (type " << _type << ", name " << _name << \
+ ", port " << _port << ")")
#endif
#define BOX_FORMAT_HEX32(number) \