summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2015-01-27 20:44:54 +0100
committerGravatar Nikias Bassen2015-01-27 20:44:54 +0100
commitf88d37c830e35df4594c30968c08c16db8392e9e (patch)
tree6b854fc81d1c004c7590a89de66e7aa59993efb2
parente7852d5a7249d769cfa867a480f4d3c673a0e5f7 (diff)
downloadlibimobiledevice-f88d37c830e35df4594c30968c08c16db8392e9e.tar.gz
libimobiledevice-f88d37c830e35df4594c30968c08c16db8392e9e.tar.bz2
idevicesyslog: Flush stdout whenever encountering a line break
-rw-r--r--tools/idevicesyslog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c
index 7aa6126..aee702b 100644
--- a/tools/idevicesyslog.c
+++ b/tools/idevicesyslog.c
@@ -46,6 +46,9 @@ static syslog_relay_client_t syslog = NULL;
static void syslog_callback(char c, void *user_data)
{
putchar(c);
+ if (c == '\n') {
+ fflush(stdout);
+ }
}
static int start_logging(void)