This patch adds librt debug support for prio-wake.
The log level selected is 0, as it necessary to print
all the buffered information.

Tested: ./prio-wake
./run_auto.

Signed-Off-By: Chirag <[EMAIL PROTECTED]>
Acked-by: Darren Hart <[EMAIL PROTECTED]>

Index: ltp/testcases/realtime/func/prio-wake/prio-wake.c
===================================================================
--- ltp.orig/testcases/realtime/func/prio-wake/prio-wake.c
+++ ltp/testcases/realtime/func/prio-wake/prio-wake.c
@@ -141,7 +141,7 @@ void *worker_thread(void* arg)
        }
 
        start = rt_gettime() - beginrun;
-       printf("%08lld us: RealtimeThread-%03d pri %03d started\n", 
start/NS_PER_US, j, mypri);
+       debug(0, "%08lld us: RealtimeThread-%03d pri %03d started\n", 
start/NS_PER_US, j, mypri);
 
        rc = pthread_mutex_lock(&mutex);
        running_threads++;
@@ -150,7 +150,7 @@ void *worker_thread(void* arg)
        wake = rt_gettime() - beginrun;
        running_threads--;
        wakeup.arr[wakeup.counter++] = mypri;
-       printf("%08lld us: RealtimeThread-%03d pri %03d awake\n", 
wake/NS_PER_US, j, mypri);
+       debug(0, "%08lld us: RealtimeThread-%03d pri %03d awake\n", 
wake/NS_PER_US, j, mypri);
 
        rc = pthread_mutex_unlock(&mutex);
 

-- 
-Thanks,Chirag

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to