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/lttctl/lttctl.c
ltt/branches/poly/lttd/lttd.c

index c14e3c9003df1605c78d281b5d821eaf5f7174ac..c73bd2578cf65683f6b421425c7e8c162afb4f33 100644 (file)
@@ -86,7 +86,7 @@ void show_arguments(void)
        printf("-x            Number of subbuffers\n");
        printf("-e            Get XML facilities description\n");
        printf("-a            Append to trace\n");
-       printf("-N            Number of ltt threads\n");
+       printf("-N            Number of lttd threads\n");
        printf("\n");
 }
 
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.029691 seconds and 4 git commands to generate.