Reactos

[WUAUSERV] Improve some DPRINTs

+11 -13
+11 -13
base/services/wuauserv/wuauserv.c
··· 40 40 if (dwState == SERVICE_RUNNING) 41 41 ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN; 42 42 43 - SetServiceStatus(ServiceStatusHandle, 44 - &ServiceStatus); 45 - DPRINT1("WU UpdateServiceStatus() called\n"); 43 + SetServiceStatus(ServiceStatusHandle, &ServiceStatus); 44 + DPRINT1("WU UpdateServiceStatus(%lu) called\n", dwState); 46 45 } 47 46 48 47 static DWORD WINAPI ··· 54 53 switch (dwControl) 55 54 { 56 55 case SERVICE_CONTROL_STOP: 57 - DPRINT1("WU ServiceControlHandler() SERVICE_CONTROL_STOP received\n"); 56 + DPRINT1("WU ServiceControlHandler(SERVICE_CONTROL_STOP) received\n"); 58 57 SetEvent(hStopEvent); 59 58 UpdateServiceStatus(SERVICE_STOP_PENDING); 60 59 return ERROR_SUCCESS; 61 60 62 61 case SERVICE_CONTROL_PAUSE: 63 - DPRINT1("WU ServiceControlHandler() SERVICE_CONTROL_PAUSE received\n"); 62 + DPRINT1("WU ServiceControlHandler(SERVICE_CONTROL_PAUSE) received\n"); 64 63 UpdateServiceStatus(SERVICE_PAUSED); 65 64 return ERROR_SUCCESS; 66 65 67 66 case SERVICE_CONTROL_CONTINUE: 68 - DPRINT1("WU ServiceControlHandler() SERVICE_CONTROL_CONTINUE received\n"); 67 + DPRINT1("WU ServiceControlHandler(SERVICE_CONTROL_CONTINUE) received\n"); 69 68 UpdateServiceStatus(SERVICE_RUNNING); 70 69 return ERROR_SUCCESS; 71 70 72 71 case SERVICE_CONTROL_INTERROGATE: 73 - DPRINT1("WU ServiceControlHandler() SERVICE_CONTROL_INTERROGATE received\n"); 74 - SetServiceStatus(ServiceStatusHandle, 75 - &ServiceStatus); 72 + DPRINT1("WU ServiceControlHandler(SERVICE_CONTROL_INTERROGATE) received\n"); 73 + SetServiceStatus(ServiceStatusHandle, &ServiceStatus); 76 74 return ERROR_SUCCESS; 77 75 78 76 case SERVICE_CONTROL_SHUTDOWN: 79 - DPRINT1("WU ServiceControlHandler() SERVICE_CONTROL_SHUTDOWN received\n"); 77 + DPRINT1("WU ServiceControlHandler(SERVICE_CONTROL_SHUTDOWN) received\n"); 80 78 SetEvent(hStopEvent); 81 79 UpdateServiceStatus(SERVICE_STOP_PENDING); 82 80 return ERROR_SUCCESS; 83 81 84 82 default : 85 - DPRINT1("WU ServiceControlHandler() Control %lu received\n", dwControl); 83 + DPRINT1("WU ServiceControlHandler(Control %lu) received\n", dwControl); 86 84 return ERROR_CALL_NOT_IMPLEMENTED; 87 85 } 88 86 } ··· 100 98 NULL); 101 99 if (!ServiceStatusHandle) 102 100 { 103 - DPRINT1("RegisterServiceCtrlHandlerExW() failed! (Error %lu)\n", GetLastError()); 101 + DPRINT1("RegisterServiceCtrlHandlerExW() failed (Error %lu)\n", GetLastError()); 104 102 return; 105 103 } 106 104 107 105 hStopEvent = CreateEventW(NULL, TRUE, FALSE, NULL); 108 106 if (hStopEvent == NULL) 109 107 { 110 - DPRINT1("CreateEvent() failed! (Error %lu)\n", GetLastError()); 108 + DPRINT1("CreateEvent() failed (Error %lu)\n", GetLastError()); 111 109 goto done; 112 110 } 113 111