Author: ekohl
Date: Thu Oct 2 17:58:55 2014
New Revision: 64469
URL:
http://svn.reactos.org/svn/reactos?rev=64469&view=rev
Log:
[SERVICES]
Disable new events and replace them by debug messages.
Modified:
trunk/reactos/base/system/services/database.c
Modified: trunk/reactos/base/system/services/database.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/datab…
==============================================================================
--- trunk/reactos/base/system/services/database.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/database.c [iso-8859-1] Thu Oct 2 17:58:55 2014
@@ -1339,9 +1339,11 @@
#ifdef USE_ASYNCHRONOUS_IO
OVERLAPPED Overlapped = {0};
#endif
+#if 0
LPCWSTR lpErrorStrings[3];
WCHAR szBuffer1[20];
WCHAR szBuffer2[20];
+#endif
DPRINT("ScmWaitForServiceConnect()\n");
@@ -1373,6 +1375,7 @@
DPRINT1("CancelIo() failed (Error: %lu)\n",
GetLastError());
}
+#if 0
_ultow(PipeTimeout, szBuffer1, 10);
lpErrorStrings[0] = Service->lpDisplayName;
lpErrorStrings[1] = szBuffer1;
@@ -1381,6 +1384,8 @@
EVENTLOG_ERROR_TYPE,
2,
lpErrorStrings);
+#endif
+ DPRINT1("Log EVENT_CONNECTION_TIMEOUT by %S\n",
Service->lpDisplayName);
return ERROR_SERVICE_REQUEST_TIMEOUT;
}
@@ -1437,6 +1442,7 @@
DPRINT1("CancelIo() failed (Error: %lu)\n",
GetLastError());
}
+#if 0
_ultow(PipeTimeout, szBuffer1, 10);
lpErrorStrings[0] = szBuffer1;
@@ -1444,6 +1450,8 @@
EVENTLOG_ERROR_TYPE,
1,
lpErrorStrings);
+#endif
+ DPRINT1("Log EVENT_READFILE_TIMEOUT by %S\n",
Service->lpDisplayName);
return ERROR_SERVICE_REQUEST_TIMEOUT;
}
@@ -1479,6 +1487,7 @@
if (dwProcessId != Service->lpImage->dwProcessId)
{
+#if 0
_ultow(Service->lpImage->dwProcessId, szBuffer1, 10);
_ultow(dwProcessId, szBuffer2, 10);
@@ -1490,6 +1499,9 @@
EVENTLOG_WARNING_TYPE,
3,
lpErrorStrings);
+#endif
+
+ DPRINT1("Log EVENT_SERVICE_DIFFERENT_PID_CONNECTED by %S\n",
Service->lpDisplayName);
}
DPRINT("ScmWaitForServiceConnect() done\n");