Sfoglia il codice sorgente

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

Nathalie Furmento 14 anni fa
parent
commit
7560e696db
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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