From 0dc3b0597caf5b353dd85007d73a5281f4d3098d Mon Sep 17 00:00:00 2001 From: szaka Date: Wed, 26 Oct 2005 19:24:45 +0000 Subject: [PATCH] fflush() ntfs_log_ streams. (Christophe) --- ChangeLog | 1 + libntfs/logging.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index b9766b63..c6fbd0b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -42,6 +42,7 @@ xx/xx/2005 - 1.12.2-WIP Sprintf(). Forward callers to ntfs_log_*(). (Yuval) - Add some debugging to ntfsdecrypt.c to allow printing of the private key after it is decrypted (this is ifdeffed out by default). (Anton) + - fflush() ntfs_log_ streams. (Christophe) 10/10/2005 - 1.12.1 - Minor fix to location of mount.ntfs-fuse and mkfs.ntfs. diff --git a/libntfs/logging.c b/libntfs/logging.c index 10da2fe4..fad6f62e 100644 --- a/libntfs/logging.c +++ b/libntfs/logging.c @@ -369,6 +369,7 @@ int ntfs_logging_handler_printf(const char *function, const char *file, ret += fprintf(stream, " : %s\n", strerror(olderr)); } + fflush(stream); errno = olderr; return ret; } @@ -447,6 +448,7 @@ int ntfs_logging_handler_colour(const char *function, const char *file, if (suffix) ret += fprintf(stream, suffix); + fflush(stream); errno = olderr; return ret; }