From 630b4bdd3d2ca967f0e1d4f438f7f1761461dd31 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 20 Feb 2007 22:39:56 +0000 Subject: Eliminating GCC dependencies git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@14 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/ostest/mutex.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'nuttx/examples/ostest/mutex.c') diff --git a/nuttx/examples/ostest/mutex.c b/nuttx/examples/ostest/mutex.c index d6cad9e39..cb8996053 100644 --- a/nuttx/examples/ostest/mutex.c +++ b/nuttx/examples/ostest/mutex.c @@ -60,14 +60,14 @@ static void *thread_func(void *parameter) if (status != 0) { printf("ERROR thread %d: pthread_mutex_lock failed, status=%d\n", - id, status); + id, status); } if (my_mutex == 1) { printf("ERROR thread=%d: " - "my_mutex should be zero, instead my_mutex=%d\n", - id, my_mutex); + "my_mutex should be zero, instead my_mutex=%d\n", + id, my_mutex); nerrors[ndx]++; } @@ -82,7 +82,7 @@ static void *thread_func(void *parameter) if (status != 0) { printf("ERROR thread %d: pthread_mutex_unlock failed, status=%d\n", - id, status); + id, status); } } pthread_exit(NULL); @@ -114,7 +114,7 @@ void mutex_test(void) pthread_join(thread1, NULL); pthread_join(thread2, NULL); - printf("%s:\t\tThread1\tThread2\n", __FUNCTION__); - printf("%s:\tLoops\t%ld\t%ld\n", __FUNCTION__, nloops[0], nloops[1]); - printf("%s:\tErrors\t%ld\t%ld\n", __FUNCTION__, nerrors[0], nerrors[1]); + printf("\t\tThread1\tThread2\n"); + printf("\tLoops\t%ld\t%ld\n", nloops[0], nloops[1]); + printf("\tErrors\t%ld\t%ld\n", nerrors[0], nerrors[1]); } -- cgit v1.2.3