]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-less-power-mgmt-logging-20060508
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 1 Jun 2006 16:36:39 +0000 (16:36 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 1 Jun 2006 16:36:39 +0000 (16:36 +0000)
comment out some of the power mgmt log entries
reducing the size of afsd_init.log

(cherry picked from commit cabc803a62c2f3d20d41356bc177873bcf79c033)

src/WINNT/afsd/afsd_service.c

index 65ebe5cbfe3abdfac6bf82271e97b875b09446b8..2f6e3d7c9ce4685c0e04dec1633153420e41f6be 100644 (file)
@@ -292,7 +292,9 @@ afsd_ServiceControlHandlerEx(
         /* XXX handle pause & continue */
     case SERVICE_CONTROL_POWEREVENT:                                              
         { 
-            afsi_log("SERVICE_CONTROL_POWEREVENT");
+#ifdef DEBUG
+           afsi_log("SERVICE_CONTROL_POWEREVENT");
+#endif
             /*                                                                                
             ** dwEventType of this notification == WPARAM of WM_POWERBROADCAST               
             ** Return NO_ERROR == return TRUE for that message, i.e. accept request          
@@ -341,11 +343,15 @@ afsd_ServiceControlHandlerEx(
                     dwRet = NO_ERROR;                       
                     break;                                  
                 case PBT_APMPOWERSTATUSCHANGE:                                                    
-                    afsi_log("SERVICE_CONTROL_APMPOWERSTATUSCHANGE"); 
+#ifdef DEBUG
+                   afsi_log("SERVICE_CONTROL_APMPOWERSTATUSCHANGE");
+#endif
                     dwRet = NO_ERROR;                       
                     break;                                  
                 case PBT_APMOEMEVENT:                                                             
+#ifdef DEBUG
                     afsi_log("SERVICE_CONTROL_APMOEMEVENT"); 
+#endif
                     dwRet = NO_ERROR;                       
                     break;                                  
                 case PBT_APMRESUMEAUTOMATIC: