diff options
author | 2024-09-18 23:22:23 +0200 | |
---|---|---|
committer | 2024-09-18 23:22:23 +0200 | |
commit | 90c2cf1e646fcb2c0d4325ed4ce7ce252dd28a2c (patch) | |
tree | f726f2b40fbf28575590c72f2d67f4ab96599434 /src | |
parent | 1c4e53e673a8f25033e4ad55e7c59af9308a7d7d (diff) | |
download | idevicerestore-90c2cf1e646fcb2c0d4325ed4ce7ce252dd28a2c.tar.gz idevicerestore-90c2cf1e646fcb2c0d4325ed4ce7ce252dd28a2c.tar.bz2 |
common: Try to improve terminal output with fflush()
Diffstat (limited to 'src')
-rw-r--r-- | src/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index d31c558..c7be4f6 100644 --- a/src/common.c +++ b/src/common.c @@ -97,6 +97,7 @@ void info(const char* format, ...) va_start(vargs, format); vfprintf((info_stream) ? info_stream : stdout, format, vargs); va_end(vargs); + fflush(info_stream?info_stream:stdout); mutex_unlock(&log_mutex); } @@ -113,6 +114,7 @@ void error(const char* format, ...) vfprintf((error_stream) ? error_stream : stderr, format, vargs2); } va_end(vargs2); + fflush(error_stream?error_stream:stderr); mutex_unlock(&log_mutex); } @@ -128,6 +130,7 @@ void debug(const char* format, ...) va_start(vargs, format); vfprintf((debug_stream) ? debug_stream : stderr, format, vargs); va_end(vargs); + fflush(debug_stream?debug_stream:stderr); mutex_unlock(&log_mutex); } |