Don't display exit code for none fatal info
Display name of path we were trying to open if opening fails
Modified: trunk/reactos/services/tcpsvcs/qotd.c
Modified: trunk/reactos/services/tcpsvcs/tcpsvcs.c
_____
Modified: trunk/reactos/services/tcpsvcs/qotd.c
--- trunk/reactos/services/tcpsvcs/qotd.c 2005-11-15 18:56:23 UTC
(rev 19254)
+++ trunk/reactos/services/tcpsvcs/qotd.c 2005-11-15 21:22:00 UTC
(rev 19255)
@@ -44,7 +44,10 @@
LogEvent(_T("QOTD: Opening quotes file\n"), 0, FALSE);
if ((fp = _tfopen(Sys, "r")) == NULL)
{
- LogEvent(_T("QOTD: Error opening quote file\n"), 0, TRUE);
+ TCHAR temp[512];
+
+ _stprintf(temp, _T("QOTD: Error opening quote file :
%s\n"), Sys);
+ LogEvent(temp, 0, TRUE);
LogEvent(_T("QOTD: Terminating thread\n"), 0, FALSE);
ExitThread(-1);
}
_____
Modified: trunk/reactos/services/tcpsvcs/tcpsvcs.c
--- trunk/reactos/services/tcpsvcs/tcpsvcs.c 2005-11-15 18:56:23 UTC
(rev 19254)
+++ trunk/reactos/services/tcpsvcs/tcpsvcs.c 2005-11-15 21:22:00 UTC
(rev 19255)
@@ -260,8 +260,7 @@
}
else
{
- _stprintf(MessageBuffer, _T("\n%s ExitCode = %lu."),
- UserMessage, ExitCode);
+ _stprintf(MessageBuffer, _T("\n%s"), UserMessage);
}
fputs (MessageBuffer, hLogFile);
Show replies by date