Commit 6405c6db authored by sletz's avatar sletz
Browse files

Cleanup.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4630 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 7fe937b5
......@@ -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;
}
}
......
......@@ -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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment