comment fixes
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 2 Feb 2006 18:46:27 +0000 (18:46 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 2 Feb 2006 18:46:27 +0000 (18:46 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1509 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttd/lttd.c

index 230159185df229e0e3d3b220784184910489da2b..27240882189de464882d2f2ab1d64fa674fc8f29 100644 (file)
@@ -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));
This page took 0.025202 seconds and 4 git commands to generate.