- irc.c:irc_read(): improve error message for failed read()
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sun, 12 Jul 2015 17:05:44 +0000 (17:05 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sun, 12 Jul 2015 17:05:44 +0000 (17:05 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.1.x@6267 82007160-df01-0410-b94d-b575c5fd34c7

src/irc.c

index 270c511fb1ffb76dca7715abf59ac969256431fc..eb6ef3f1d82c68edf5f1d96980839cd9707459a3 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
@@ -747,7 +747,7 @@ irc_read(void)
   if ((len <= 0) && (errno != EAGAIN))
   {
     if (OPT_DEBUG >= 2)
-      log_printf("irc_read -> errno=%d len=%d", errno, len);
+      log_printf("IRC -> Error reading data from server: %s", strerror(errno));
 
     irc_reconnect();
     IRC_RAW_LEN = 0;