From 86d4bdd66f8664d2998be3f50122db434abe04bb Mon Sep 17 00:00:00 2001 From: sletz Date: Tue, 6 May 2008 10:27:22 +0000 Subject: [PATCH] Cleanup git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2237 0c269be4-1314-0410-8aa9-9f06e86f4224 --- common/JackPosixThread.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/common/JackPosixThread.cpp b/common/JackPosixThread.cpp index 758e6bf9..ed036b1b 100644 --- a/common/JackPosixThread.cpp +++ b/common/JackPosixThread.cpp @@ -75,17 +75,17 @@ int JackPosixThread::StartImp(pthread_t* thread, int priority, int realtime, voi int res; if ((res = pthread_attr_setinheritsched(&attributes, PTHREAD_EXPLICIT_SCHED))) { - jack_error("Cannot request explicit scheduling for RT thread %d %s", res, strerror(errno)); + jack_error("Cannot request explicit scheduling for RT thread res = %d err = %s", res, strerror(errno)); return -1; } if ((res = pthread_attr_setdetachstate(&attributes, PTHREAD_CREATE_JOINABLE))) { - jack_error("Cannot request joinable thread creation for RT thread %d %s", res, strerror(errno)); + jack_error("Cannot request joinable thread creation for RT thread res = %d err = %s", res, strerror(errno)); return -1; } if ((res = pthread_attr_setscope(&attributes, PTHREAD_SCOPE_SYSTEM))) { - jack_error("Cannot set scheduling scope for RT thread %d %s", res, strerror(errno)); + jack_error("Cannot set scheduling scope for RT thread res = %d err = %s", res, strerror(errno)); return -1; } @@ -95,7 +95,7 @@ int JackPosixThread::StartImp(pthread_t* thread, int priority, int realtime, voi //if ((res = pthread_attr_setschedpolicy(&attributes, SCHED_FIFO))) { if ((res = pthread_attr_setschedpolicy(&attributes, SCHED_RR))) { - jack_error("Cannot set RR scheduling class for RT thread %d %s", res, strerror(errno)); + jack_error("Cannot set RR scheduling class for RT thread res = %d err = %s", res, strerror(errno)); return -1; } } else { @@ -106,17 +106,17 @@ int JackPosixThread::StartImp(pthread_t* thread, int priority, int realtime, voi rt_param.sched_priority = priority; if ((res = pthread_attr_setschedparam(&attributes, &rt_param))) { - jack_error("Cannot set scheduling priority for RT thread %d %s", res, strerror(errno)); + jack_error("Cannot set scheduling priority for RT thread res = %d err = %s", res, strerror(errno)); return -1; } if ((res = pthread_attr_setstacksize(&attributes, THREAD_STACK))) { - jack_error("setting thread stack size%d %s", res, strerror(errno)); + jack_error("setting thread stack size res = %d err = %s", res, strerror(errno)); return -1; } if ((res = pthread_create(thread, &attributes, start_routine, arg))) { - jack_error("Cannot set create thread %d %s", res, strerror(errno)); + jack_error("Cannot set create thread res = %d err = %s", res, strerror(errno)); return -1; }