flush the log file at every output

This commit is contained in:
Andre Leiradella 2015-11-08 18:47:05 -02:00
parent 3479ba2dba
commit 4efb9eb645

View File

@ -217,7 +217,8 @@ static INLINE void RARCH_LOG_V(const char *tag, const char *fmt, va_list ap)
__android_log_vprint(prio, PROGRAM_NAME, fmt, ap);
#else
fprintf(LOG_FILE, "%s %s :: ", PROGRAM_NAME, tag ? tag : "[INFO]");
vfprintf(LOG_FILE, fmt, ap);
vfprintf(LOG_FILE, fmt, ap);
fflush(LOG_FILE);
#endif
}