git » libjio » commit 5f75224

Flush printf in jiofsck.

author Alberto Bertogli
2004-07-13 21:16:47 UTC
committer Alberto Bertogli
2007-07-15 13:12:52 UTC
parent b0bed7bb6d720acb9d4dbb572384fa4f8ce841b6

Flush printf in jiofsck.

Flush printf in jiofsck.

jiofsck.c +2 -0

diff --git a/jiofsck.c b/jiofsck.c
index b7c8ad4..db3f6ba 100644
--- a/jiofsck.c
+++ b/jiofsck.c
@@ -45,6 +45,7 @@ int main(int argc, char **argv)
 	memset(&res, 0, sizeof(res));
 	
 	printf("Checking journal: ");
+	fflush(stdout);
 	rv = jfsck(file, &res);
 
 	if (rv == J_ENOENT) {
@@ -60,6 +61,7 @@ int main(int argc, char **argv)
 
 	if (do_cleanup) {
 		printf("Cleaning journal: ");
+		fflush(stdout);
 		if (!jfsck_cleanup(file)) {
 			printf("Error cleaning journal\n");
 			return 1;