DEVEL15-windows-less-power-mgmt-logging-20060508

comment out some of the power mgmt log entries
reducing the size of afsd_init.log


(cherry picked from commit cabc803a62c2f3d20d41356bc177873bcf79c033)
This commit is contained in:
Jeffrey Altman 2006-06-01 16:36:39 +00:00 committed by Derrick Brashear
parent b8f04cfcc1
commit 953cbe4fab

View File

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