Browse Source

include/starpu_util.h: print the error as a number and not as a string

Nathalie Furmento 13 years ago
parent
commit
34d359f098
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/starpu_util.h

+ 2 - 2
include/starpu_util.h

@@ -47,10 +47,10 @@ extern "C"
 #define STARPU_ABORT()		abort()
 
 #define STARPU_CHECK_RETURN_VALUE(err, message) {if (err < 0) { \
-			fprintf(stderr, "StarPU function <%s> returned unexpected value: <%s>\n", message, strerror(err)); \
+			fprintf(stderr, "StarPU function <%s> returned unexpected value: <%d>\n", message, err); \
 			STARPU_ASSERT(0); }}
 #define STARPU_CHECK_RETURN_VALUE_IS(err, value, message) {if (err != value) { \
-			fprintf(stderr, "StarPU function <%s> returned unexpected value: <%s>\n", message, strerror(err)); \
+			fprintf(stderr, "StarPU function <%s> returned unexpected value: <%d>\n", message, err); \
 			STARPU_ASSERT(0); }}
 
 #ifdef __GNUC__