Skip to content

Commit 396926f

Browse files
committed
test
1 parent 2ff38fd commit 396926f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/shared/platform/linux/platform_init.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ os_printf(const char *format, ...)
2828
ret += BH_VPRINTF(format, ap);
2929
#endif
3030
va_end(ap);
31+
fflush(NULL);
3132

3233
return ret;
3334
}
@@ -36,7 +37,9 @@ int
3637
os_vprintf(const char *format, va_list ap)
3738
{
3839
#ifndef BH_VPRINTF
39-
return vprintf(format, ap);
40+
int ret = vprintf(format, ap);
41+
fflush(NULL);
42+
return ret;
4043
#else
4144
return BH_VPRINTF(format, ap);
4245
#endif

0 commit comments

Comments
 (0)