Manuel points out that if printf needs a flush to act like dprintf, the result
is bigger. Revert last patch.
This commit is contained in:
parent
0fcd9430ce
commit
b9dfb8c03f
@ -62,8 +62,7 @@ static int status
|
|||||||
static void tail_xprint_header(const char *fmt, const char *filename)
|
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 we get an output error, there is really no sense in continuing. */
|
||||||
if (printf(fmt, filename) < 0 ||
|
if (dprintf(STDOUT_FILENO, fmt, filename) < 0) {
|
||||||
fflush(stdout) < 0) {
|
|
||||||
bb_perror_nomsg_and_die();
|
bb_perror_nomsg_and_die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user