瀏覽代碼

src/common/utils.h: add a flush to _STARPU_DEBUG

Nathalie Furmento 14 年之前
父節點
當前提交
7560e696db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/utils.h

+ 1 - 1
src/common/utils.h

@@ -27,7 +27,7 @@
 #include <stdlib.h>
 
 #ifdef STARPU_VERBOSE
-#  define _STARPU_DEBUG(fmt, args ...) do { if (!getenv("STARPU_SILENT")) {fprintf(stderr, "[starpu][%s] " fmt ,__func__ ,##args); }} while(0)
+#  define _STARPU_DEBUG(fmt, args ...) do { if (!getenv("STARPU_SILENT")) {fprintf(stderr, "[starpu][%s] " fmt ,__func__ ,##args); fflush(stderr); }} while(0)
 #else
 #  define _STARPU_DEBUG(fmt, args ...)
 #endif