project_files/frontlib/logging.c
changeset 7162 fe76d24a25d7
parent 7160 c42949cfdd92
child 7177 bf6cf4dd847a
--- a/project_files/frontlib/logging.c	Thu May 31 18:54:40 2012 +0200
+++ b/project_files/frontlib/logging.c	Sat Jun 02 14:26:52 2012 +0200
@@ -3,6 +3,7 @@
 #include <time.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <stdlib.h>
 
 char* flib_format_ip(uint32_t numip) {
 	static char ip[16];
@@ -27,6 +28,7 @@
 	fprintf(file, " [%s]", prefix);
 	vfprintf(file, fmt, args);
 	fprintf(file, "\n");
+	fflush(file);
 }
 
 void flib_log_e(const char *fmt, ...) {