Przeglądaj źródła

src/common/utils.h: make sure the message displayed by _STARPU_ERROR is clearly visible

Nathalie Furmento 12 lat temu
rodzic
commit
8cf58e11aa
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      src/common/utils.h

+ 3 - 2
src/common/utils.h

@@ -50,8 +50,9 @@
 #define _STARPU_DISP(fmt, args ...) do { if (!getenv("STARPU_SILENT")) {fprintf(stderr, "[starpu][%s] " fmt ,__func__ ,##args); }} while(0)
 #define _STARPU_ERROR(fmt, args ...)                                                  \
 	do {                                                                          \
-                fprintf(stderr, "[starpu][%s] Error: " fmt ,__func__ ,##args);        \
-		STARPU_ABORT();                                                            \
+                fprintf(stderr, "\n\n[starpu][%s] Error: " fmt ,__func__ ,##args);    \
+		fprintf(stderr, "\n\n");					      \
+		STARPU_ABORT();                                                       \
 	} while (0)