smb-vc-reset-on-request-20090218
[openafs.git] / src / WINNT / afsd / afsd_eventlog.c
index 192d8d5..a6ed02c 100644 (file)
@@ -167,7 +167,7 @@ LogEvent(WORD wEventType, DWORD dwEventID, ...)
     CHAR       lpStrings[MAXARGS][STRLEN];
     WORD       wNumArgs = 0;
     WORD       wNumStrings = 0;
-       DWORD   code;
+    DWORD       code;
 
     // Ensure that our event source is properly initialized.
     if (!AddEventSource())
@@ -195,6 +195,7 @@ LogEvent(WORD wEventType, DWORD dwEventID, ...)
     case MSG_SERVICE_ERROR_STOP:
     case MSG_CRYPT_OFF:
     case MSG_CRYPT_ON:
+    case MSG_SMB_RESET_ALL_VCS:
        break;
     case MSG_FLUSH_BAD_SHARE_NAME:
     case MSG_FLUSH_OPEN_ENUM_ERROR:
@@ -209,6 +210,8 @@ LogEvent(WORD wEventType, DWORD dwEventID, ...)
        break;
     case MSG_TIME_FLUSH_PER_VOLUME:
     case MSG_TIME_FLUSH_TOTAL:
+    case MSG_SMB_MAX_MPX_COUNT:
+    case MSG_SMB_MAX_BUFFER_SIZE:
        wNumArgs = 2;
        lpArgs[0] = va_arg(listArgs, LPTSTR);
        lpArgs[1] = va_arg(listArgs, LPTSTR);
@@ -296,14 +299,14 @@ LogEvent(WORD wEventType, DWORD dwEventID, ...)
 
     // Log the event.
     code = ReportEvent(hEventSource,           // handle of event source
-                wEventType,            // event type
-                0,                     // event category
-                dwEventID,             // event ID
-                NULL,                  // current user's SID
-                wNumArgs,              // strings in lpszArgs
-                0,                     // no bytes of raw data
-                wNumArgs ? lpArgs : NULL,              // array of error strings
-                NULL);                 // no raw data
+                       wEventType,             // event type
+                       0,                      // event category
+                       dwEventID,              // event ID
+                       NULL,                   // current user's SID
+                       wNumArgs,               // strings in lpszArgs
+                       0,                      // no bytes of raw data
+                       wNumArgs ? lpArgs : NULL,// array of error strings
+                       NULL);                  // no raw data
 
 
     DeregisterEventSource(hEventSource);