Commit 2e31e1687c989372b1a468325e325df37ffd9aa4

Znort 987 2011-08-11T14:34:43

Add missing fflush(stdout) for --ndevs

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/main.c b/main.c
index e3a9ea3..3c28514 100644
--- a/main.c
+++ b/main.c
@@ -693,6 +693,7 @@ static char *load_config(const char *arg, void *unused)
 static char *print_ndevs_and_exit(int *ndevs)
 {
 	printf("%i GPU devices detected\n", *ndevs);
+	fflush(stdout);
 	exit(*ndevs);
 }
 #endif