From: Rob Landley Date: Sat, 7 May 2005 17:45:38 +0000 (-0000) Subject: Manuel points out that if printf needs a flush to act like dprintf, the result X-Git-Tag: 1_1_0~1003 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b9dfb8c03febea78ab1924b4924c381ca983891c;p=oweals%2Fbusybox.git Manuel points out that if printf needs a flush to act like dprintf, the result is bigger. Revert last patch. --- diff --git a/coreutils/tail.c b/coreutils/tail.c index ef0038385..e3f89d2ee 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -62,8 +62,7 @@ static int status static void tail_xprint_header(const char *fmt, const char *filename) { /* If we get an output error, there is really no sense in continuing. */ - if (printf(fmt, filename) < 0 || - fflush(stdout) < 0) { + if (dprintf(STDOUT_FILENO, fmt, filename) < 0) { bb_perror_nomsg_and_die(); } }