platforms/parallella/consumer: minor cleaning
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 22 Jul 2015 15:30:07 +0000 (11:30 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 22 Jul 2015 15:30:07 +0000 (11:30 -0400)
platforms/parallella/consumer/consumer.c

index 6f813079c91b0ba2a1494e77581d5f259e2a6f88..622728496903e044ed3dc7f39d86d41994ea4029 100644 (file)
@@ -40,7 +40,6 @@
 
 #include "barectf-platform-parallella-common.h"
 
-#define TARGET_EXECUTABLE_FILENAME     "./e_barectf_tracing_2.srec"
 #define mb()           __asm__ __volatile__("dmb" : : : "memory")
 
 struct ctx {
@@ -101,8 +100,8 @@ static int try_consume_core_packet(struct ctx *ctx, unsigned int row,
        if (ctx->verbose) {
                printf("Consuming one packet from ring buffer of core (%u, %u):\n",
                        row, col);
-               printf("  Producer index:       %u\n", producer_index);
-               printf("  Consumer index:       %u\n", consumer_index);
+               printf("  Producer index:        %u\n", producer_index);
+               printf("  Consumer index:        %u\n", consumer_index);
                printf("  Consumer packet index: %u\n", cons_packet_index);
        }
 
@@ -193,7 +192,8 @@ static void close_stream_fds(struct ctx *ctx)
 
                        if (close(fd) == -1) {
                                fprintf(stderr,
-                                       "Error: could not close FD %d:\n", fd);
+                                       "Warning: could not close FD %d:\n",
+                                       fd);
                                perror("close");
                        }
 
@@ -276,7 +276,7 @@ static int init(struct ctx *ctx)
 
        if (ret != E_OK) {
                if (ctx->verbose) {
-                       printf("Attaching to shared memory region \"%s\"\n",
+                       printf("Allocation failed; attaching to shared memory region \"%s\"\n",
                                SMEM_NAME);
                }
 
@@ -299,7 +299,7 @@ static int init(struct ctx *ctx)
        init_stream_fds(ctx);
 
        if (open_stream_fds(ctx)) {
-               fprintf(stderr, "Error: failed to create CTF streams\n");
+               fprintf(stderr, "Error: failed to create CTF stream files\n");
                ret = -1;
                goto error_finalize;
        }
This page took 0.023846 seconds and 4 git commands to generate.