From bb33710e45c6e3b4f6594b8c35c79e17c6e5466a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Feb 2009 16:00:00 +0000 Subject: remove useless log priorities CRIT,EMERG,ALERT --- src/win32/tunDevice.cpp | 8 ++++---- src/win32/winService.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/win32') diff --git a/src/win32/tunDevice.cpp b/src/win32/tunDevice.cpp index f9b9092..12f025c 100644 --- a/src/win32/tunDevice.cpp +++ b/src/win32/tunDevice.cpp @@ -207,12 +207,12 @@ int TunDevice::read(u_int8_t* buf, u_int32_t len) if(err == ERROR_IO_PENDING) { WaitForSingleObject(roverlapped_.hEvent, INFINITE); if(!GetOverlappedResult(handle_, &roverlapped_, &lenout, FALSE)) { - cLog.msg(Log::PRIO_ERR) << "Error while trying to get overlapped result: " << AnytunErrno(GetLastError()); + cLog.msg(Log::PRIO_ERROR) << "Error while trying to get overlapped result: " << AnytunErrno(GetLastError()); return -1; } } else { - cLog.msg(Log::PRIO_ERR) << "Error while reading from device: " << AnytunErrno(GetLastError()); + cLog.msg(Log::PRIO_ERROR) << "Error while reading from device: " << AnytunErrno(GetLastError()); return -1; } } @@ -231,12 +231,12 @@ int TunDevice::write(u_int8_t* buf, u_int32_t len) if(err == ERROR_IO_PENDING) { WaitForSingleObject(woverlapped_.hEvent, INFINITE); if(!GetOverlappedResult(handle_, &woverlapped_, &lenout, FALSE)) { - cLog.msg(Log::PRIO_ERR) << "Error while trying to get overlapped result: " << AnytunErrno(GetLastError()); + cLog.msg(Log::PRIO_ERROR) << "Error while trying to get overlapped result: " << AnytunErrno(GetLastError()); return -1; } } else { - cLog.msg(Log::PRIO_ERR) << "Error while writing to device: " << AnytunErrno(GetLastError()); + cLog.msg(Log::PRIO_ERROR) << "Error while writing to device: " << AnytunErrno(GetLastError()); return -1; } } diff --git a/src/win32/winService.cpp b/src/win32/winService.cpp index fefa725..5ce3d74 100644 --- a/src/win32/winService.cpp +++ b/src/win32/winService.cpp @@ -147,13 +147,13 @@ int real_main(int argc, char* argv[]); VOID WINAPI WinService::main(DWORD dwArgc, LPTSTR *lpszArgv) { if(gWinService.started_) { - cLog.msg(Log::PRIO_ERR) << "Service is already running"; + cLog.msg(Log::PRIO_ERROR) << "Service is already running"; return; } gWinService.status_handle_ = RegisterServiceCtrlHandlerA(SVC_NAME, WinService::ctrlHandler); if(!gWinService.status_handle_) { - cLog.msg(Log::PRIO_ERR) << "Error on RegisterServiceCtrlHandler: " << AnytunErrno(GetLastError()); + cLog.msg(Log::PRIO_ERROR) << "Error on RegisterServiceCtrlHandler: " << AnytunErrno(GetLastError()); return; } gWinService.status_.dwServiceType = SERVICE_WIN32_OWN_PROCESS; @@ -163,7 +163,7 @@ VOID WINAPI WinService::main(DWORD dwArgc, LPTSTR *lpszArgv) gWinService.stop_event_ = CreateEvent(NULL, true, false, NULL); if(!gWinService.stop_event_) { - cLog.msg(Log::PRIO_ERR) << "WinService Error on CreateEvent: " << AnytunErrno(GetLastError()); + cLog.msg(Log::PRIO_ERROR) << "WinService Error on CreateEvent: " << AnytunErrno(GetLastError()); gWinService.reportStatus(SERVICE_STOPPED, -1); return; } -- cgit v1.2.3