diff --git a/windows/JackWinNamedPipe.cpp b/windows/JackWinNamedPipe.cpp index 1dfbe70e..43106afb 100644 --- a/windows/JackWinNamedPipe.cpp +++ b/windows/JackWinNamedPipe.cpp @@ -35,7 +35,7 @@ int JackWinNamedPipe::Read(void* data, int len) if (res && read == (DWORD)len) { return 0; } else { - jack_error("Cannot read named pipe err = %ld", GetLastError()); + jack_error("Cannot read named pipe name = %s err = %ld", fName, GetLastError()); return -1; } } @@ -47,7 +47,7 @@ int JackWinNamedPipe::Write(void* data, int len) if (res && written == (DWORD)len) { return 0; } else { - jack_error("Cannot write named pipe err = %ld", GetLastError()); + jack_error("Cannot write named pipe name = %s err = %ld", fName, GetLastError()); return -1; } } diff --git a/windows/JackWinNamedPipeServerChannel.cpp b/windows/JackWinNamedPipeServerChannel.cpp index cb8442b9..cf95b36b 100644 --- a/windows/JackWinNamedPipeServerChannel.cpp +++ b/windows/JackWinNamedPipeServerChannel.cpp @@ -98,8 +98,9 @@ bool JackClientPipeThread::HandleRequest() bool ret = true; // Lock the global mutex - if (WaitForSingleObject(fMutex, INFINITE) == WAIT_FAILED) + if (WaitForSingleObject(fMutex, INFINITE) == WAIT_FAILED) { jack_error("JackClientPipeThread::HandleRequest: mutex wait error"); + } if (res < 0) { jack_error("HandleRequest: cannot read header"); @@ -436,7 +437,7 @@ void JackClientPipeThread::ClientKill() { jack_log("JackClientPipeThread::ClientKill ref = %d", fRefNum); - if (fRefNum == -1) { // Correspond to an already removed client. + if (fRefNum == -1) { // Correspond to an already removed client. jack_log("Kill a closed client"); } else if (fRefNum == 0) { // Correspond to a still not opened client. jack_log("Kill a not opened client");