]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
DPrint the LHNET_Read and LHNET_Write errors (as they may just indicate lack of IPv6...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 7 Nov 2010 18:37:40 +0000 (18:37 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 9 Nov 2010 21:29:31 +0000 (22:29 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10583 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a50c2fe2f0c39462a60b9a9f8ccbe43942b75a28

lhnet.c

diff --git a/lhnet.c b/lhnet.c
index 42ca242cf0c1a91b08d04f9befd67266b66b8f99..a6cf1a4cb586baeddadc1b0d1f70e60058738326 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -1100,7 +1100,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength,
                                        Con_Print("Connection refused\n");
                                        return 0;
                        }
-                       Con_Printf("LHNET_Read: recvfrom returned error: %s\n", LHNETPRIVATE_StrError());
+                       Con_DPrintf("LHNET_Read: recvfrom returned error: %s\n", LHNETPRIVATE_StrError());
                }
        }
 #ifdef SUPPORTIPV6
@@ -1127,7 +1127,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength,
                                        Con_Print("Connection refused\n");
                                        return 0;
                        }
-                       Con_Printf("LHNET_Read: recvfrom returned error: %s\n", LHNETPRIVATE_StrError());
+                       Con_DPrintf("LHNET_Read: recvfrom returned error: %s\n", LHNETPRIVATE_StrError());
                }
        }
 #endif
@@ -1168,7 +1168,7 @@ int LHNET_Write(lhnetsocket_t *lhnetsocket, const void *content, int contentleng
                {
                        if (SOCKETERRNO == EWOULDBLOCK)
                                return 0;
-                       Con_Printf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError());
+                       Con_DPrintf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError());
                }
        }
 #ifdef SUPPORTIPV6
@@ -1179,7 +1179,7 @@ int LHNET_Write(lhnetsocket_t *lhnetsocket, const void *content, int contentleng
                {
                        if (SOCKETERRNO == EWOULDBLOCK)
                                return 0;
-                       Con_Printf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError());
+                       Con_DPrintf("LHNET_Write: sendto returned error: %s\n", LHNETPRIVATE_StrError());
                }
        }
 #endif