ffadler: fix duplicate \n on errors
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 9 May 2013 14:34:55 +0000 (16:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 9 May 2013 14:54:04 +0000 (16:54 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/ffadler.c

index 3f9c161..97e6257 100644 (file)
@@ -46,7 +46,7 @@ static int check(char *file)
     if (file) fd = open(file, O_RDONLY);
     else      fd = 0;
     if (fd == -1) {
-        printf("A32=OPEN-FAILED-%d\n", errno);
+        printf("A32=OPEN-FAILED-%d", errno);
         ret = 1;
         goto end;
     }
@@ -54,7 +54,7 @@ static int check(char *file)
     for (;;) {
         ssize_t size = read(fd, buffer, SIZE);
         if (size < 0) {
-            printf("A32=0x%08x+READ-FAILED-%d\n", checksum, errno);
+            printf("A32=0x%08x+READ-FAILED-%d", checksum, errno);
             ret = 2;
             goto end;
         } else if(!size)