Author: cgutman
Date: Sat Aug 23 17:42:44 2008
New Revision: 35580
URL:
http://svn.reactos.org/svn/reactos?rev=35580&view=rev
Log:
- Enable the failure debug prints in MsafdReturnWithErrno
- They shouldn't spam the debug log and they're a great way to tell if something
is going wrong in the network stack
Modified:
trunk/reactos/dll/win32/msafd/misc/dllmain.c
Modified: trunk/reactos/dll/win32/msafd/misc/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/dllma…
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] Sat Aug 23 17:42:44 2008
@@ -285,12 +285,12 @@
if( ReturnedBytes ) *ReturnedBytes = Received; break;
case STATUS_END_OF_FILE: *Errno = WSAESHUTDOWN; break;
case STATUS_PENDING: *Errno = WSA_IO_PENDING; break;
- case STATUS_BUFFER_OVERFLOW: AFD_DbgPrint(MID_TRACE,("MSAFD:
STATUS_BUFFER_TOO_SMALL/STATUS_BUFFER_OVERFLOW\n")); *Errno = WSAEMSGSIZE; break;
+ case STATUS_BUFFER_OVERFLOW: DbgPrint("MSAFD:
STATUS_BUFFER_TOO_SMALL/STATUS_BUFFER_OVERFLOW\n"); *Errno = WSAEMSGSIZE; break;
case STATUS_NO_MEMORY: /* Fall through to STATUS_INSUFFICIENT_RESOURCES */
- case STATUS_INSUFFICIENT_RESOURCES: AFD_DbgPrint(MID_TRACE,("MSAFD:
STATUS_NO_MEMORY/STATUS_INSUFFICIENT_RESOURCES\n")); *Errno = WSA_NOT_ENOUGH_MEMORY;
break;
- case STATUS_INVALID_CONNECTION: AFD_DbgPrint(MID_TRACE,("MSAFD:
STATUS_INVALID_CONNECTION\n")); *Errno = WSAEAFNOSUPPORT; break;
- case STATUS_REMOTE_NOT_LISTENING: AFD_DbgPrint(MID_TRACE, ("MSAFD:
STATUS_REMOTE_NOT_LISTENING\n")); *Errno = WSAECONNRESET; break;
- case STATUS_FILE_CLOSED: AFD_DbgPrint(MID_TRACE, ("MSAFD:
STATUS_FILE_CLOSED\n")); *Errno = WSAENOTSOCK; break;
+ case STATUS_INSUFFICIENT_RESOURCES: DbgPrint("MSAFD:
STATUS_NO_MEMORY/STATUS_INSUFFICIENT_RESOURCES\n"); *Errno = WSA_NOT_ENOUGH_MEMORY;
break;
+ case STATUS_INVALID_CONNECTION: DbgPrint("MSAFD:
STATUS_INVALID_CONNECTION\n"); *Errno = WSAEAFNOSUPPORT; break;
+ case STATUS_REMOTE_NOT_LISTENING: DbgPrint("MSAFD:
STATUS_REMOTE_NOT_LISTENING\n"); *Errno = WSAECONNRESET; break;
+ case STATUS_FILE_CLOSED: DbgPrint("MSAFD: STATUS_FILE_CLOSED\n"); *Errno =
WSAENOTSOCK; break;
case STATUS_INVALID_PARAMETER: DbgPrint("MSAFD: STATUS_INVALID_PARAMETER\n");
*Errno = WSAEINVAL; break;
default:
DbgPrint("MSAFD: Error %x is unknown\n", Status);