From cdad978721add90e7f10411e68795099bf87946e Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 2 Feb 2006 18:46:27 +0000 Subject: [PATCH] comment fixes git-svn-id: http://ltt.polymtl.ca/svn@1509 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttd/lttd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ltt/branches/poly/lttd/lttd.c b/ltt/branches/poly/lttd/lttd.c index 2301591..2724088 100644 --- a/ltt/branches/poly/lttd/lttd.c +++ b/ltt/branches/poly/lttd/lttd.c @@ -318,7 +318,7 @@ int read_subbuffer(struct fd_pair *pair) printf("cookie : %u\n", consumed_old); if(err != 0) { ret = errno; - perror("Error in reserving sub buffer"); + perror("Reserving sub buffer failed (everything is normal)"); goto get_error; } @@ -529,8 +529,7 @@ void * read_channels(void *arg) /* it's ok to have an unavailable subbuffer */ ret = read_subbuffer(&fd_pairs->pair[i]); if(ret == -EAGAIN) ret = 0; - else if(ret) - printf("Error in read_subbuffer : %s\n", strerror(ret)); + ret = pthread_mutex_unlock(&fd_pairs->pair[i].mutex); if(ret) printf("Error in mutex unlock : %s\n", strerror(ret)); @@ -551,8 +550,7 @@ void * read_channels(void *arg) /* it's ok to have an unavailable subbuffer */ ret = read_subbuffer(&fd_pairs->pair[i]); if(ret == -EAGAIN) ret = 0; - else if(ret) - printf("Error in read_subbuffer : %s\n", strerror(ret)); + ret = pthread_mutex_unlock(&fd_pairs->pair[i].mutex); if(ret) printf("Error in mutex unlock : %s\n", strerror(ret)); -- 2.34.1