Commit d9cb1e0e authored by Michael Niedermayer's avatar Michael Niedermayer

ffadler: fix duplicate \n on errors

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 88e0e205
...@@ -46,7 +46,7 @@ static int check(char *file) ...@@ -46,7 +46,7 @@ static int check(char *file)
if (file) fd = open(file, O_RDONLY); if (file) fd = open(file, O_RDONLY);
else fd = 0; else fd = 0;
if (fd == -1) { if (fd == -1) {
printf("A32=OPEN-FAILED-%d\n", errno); printf("A32=OPEN-FAILED-%d", errno);
ret = 1; ret = 1;
goto end; goto end;
} }
...@@ -54,7 +54,7 @@ static int check(char *file) ...@@ -54,7 +54,7 @@ static int check(char *file)
for (;;) { for (;;) {
ssize_t size = read(fd, buffer, SIZE); ssize_t size = read(fd, buffer, SIZE);
if (size < 0) { if (size < 0) {
printf("A32=0x%08x+READ-FAILED-%d\n", checksum, errno); printf("A32=0x%08x+READ-FAILED-%d", checksum, errno);
ret = 2; ret = 2;
goto end; goto end;
} else if(!size) } else if(!size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment