mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-12-13 23:08:53 +00:00
Shaun Jackman pointed out that dprintf(STDOUT_FILENO,...) is just a printf.
This commit is contained in:
parent
ea338fffb5
commit
cce1ae2ce5
@ -62,7 +62,8 @@ 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 (dprintf(STDOUT_FILENO, fmt, filename) < 0) {
|
||||
if (printf(fmt, filename) < 0 ||
|
||||
fflush(stdout) < 0) {
|
||||
bb_perror_nomsg_and_die();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user