[ofw] [PATCH] add syslog() call to record Windows service control calls to opensm

Smith, Stan stan.smith at intel.com
Wed Dec 23 17:06:05 PST 2009


Use syslog() to record the events 128 [clear log file] & 129 [start heavy] sweep.

Commits to both trunk\ & WOF2-2

Signed-off-by: stan smith <stan.smith at intel.com>

Revision: 2644
Author: stansmith
Date: 4:36:08 PM, Wednesday, December 23, 2009
Message:
[OPENSM] added syslog() call to record Windows Service control calls (128,129) [clear log file & start heavy sweep].
----
Modified : /gen1/branches/WOF2-2/ulp/opensm/user/opensm/main.c
Modified : /gen1/trunk/ulp/opensm/user/opensm/main.c

--- a/WOF2-2/ulp/opensm/user/opensm/main.c      Wed Dec 23 16:30:17 2009
+++ b/WOF2-2/ulp/opensm/user/opensm/main.c      Fri Dec 18 13:08:07 2009
@@ -1380,11 +1380,13 @@
       case SERVICE_CONTROL_OSM_REOPEN_LOG_FILE:
          osm_usr1_flag = 1;
          SvcDebugOut(" [OSM_SERVICE] SERVICE_CONTROL_OSM_REOPEN_LOG_FILE\n");
+         syslog(LOG_INFO,"[SERVICE_CONTROL] REOPEN_LOG_FILE\n");
          break;

       case SERVICE_CONTROL_OSM_START_HEAVY_SWEEP:
          osm_hup_flag = 1;
-         SvcDebugOut(" [OSM_SERVICE] SERVICE_CONTROL_OSM_START_HEAVY_SWEEP\n");
+         SvcDebugOut("[OSM_SERVICE] SERVICE_CONTROL_OSM_START_HEAVY_SWEEP\n");
+         syslog(LOG_INFO,"[SERVICE_CONTROL] START_HEAVY_SWEEP\n");
          break;

       default:



More information about the ofw mailing list