From b861e17c0bc34ea2042879bc705f5d26a7e0a77f Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 3 Sep 2011 18:17:21 -0400 Subject: [PATCH] Windows: log SMB or RDR in use at startup Change-Id: Ib38d8a755a8ace9db672ce2d10bcdd370e9e3de6 Reviewed-on: http://gerrit.openafs.org/5338 Tested-by: BuildBot Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsd/afsd_eventlog.c | 12 +++++++++++- src/WINNT/afsd/afsd_eventmessages.mc | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/afsd_eventlog.c b/src/WINNT/afsd/afsd_eventlog.c index 05fec3d067..03357f76fe 100644 --- a/src/WINNT/afsd/afsd_eventlog.c +++ b/src/WINNT/afsd/afsd_eventlog.c @@ -204,7 +204,6 @@ LogEvent(WORD wEventType, DWORD dwEventID, ...) case MSG_UNHANDLED_EXCEPTION: case MSG_SMB_ZERO_TRANSACTION_COUNT: case MSG_SERVICE_INCORRECT_VERSIONS: - case MSG_SERVICE_RUNNING: case MSG_SERVICE_STOPPING: case MSG_SERVICE_STOPPED: case MSG_SERVICE_ERROR_STOP: @@ -215,6 +214,17 @@ LogEvent(WORD wEventType, DWORD dwEventID, ...) wNumArgs = 1; lpArgs[0] = AFSVersion; break; + case MSG_SERVICE_RUNNING: + wNumArgs = 1; + if (smb_Enabled && RDR_Initialized) + lpArgs[0] = "SMB and RDR interfaces"; + else if (smb_Enabled) + lpArgs[0] = "SMB interface"; + else if (RDR_Initialized) + lpArgs[0] = "RDR interface"; + else + lpArgs[0] = "No active interface"; + break; case MSG_FLUSH_BAD_SHARE_NAME: case MSG_FLUSH_OPEN_ENUM_ERROR: case MSG_FLUSH_ENUM_ERROR: diff --git a/src/WINNT/afsd/afsd_eventmessages.mc b/src/WINNT/afsd/afsd_eventmessages.mc index 0c756af3d5..31e2a0f764 100644 --- a/src/WINNT/afsd/afsd_eventmessages.mc +++ b/src/WINNT/afsd/afsd_eventmessages.mc @@ -276,7 +276,7 @@ Severity=Informational Facility=System SymbolicName=MSG_SERVICE_RUNNING Language=English -OpenAFS Running. +OpenAFS Running. %1 . MessageId=