Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix debug message in simix
authorshenshei <paul.bedaride@gmail.com>
Mon, 3 Dec 2012 16:54:02 +0000 (17:54 +0100)
committershenshei <paul.bedaride@gmail.com>
Mon, 3 Dec 2012 16:54:02 +0000 (17:54 +0100)
src/simix/smx_smurf_private.h
src/simix/smx_user.c

index 362b86f..46d184a 100644 (file)
 #define SIMCALL_ENUM(type, ...)\
        type
 
+/* generate the strings name from the enumeration values */
+#define SIMCALL_STRING_TYPE(type, name, answer, res, ...)\
+       [type] = STRINGIFY(type)
+
 /* generate strings from the enumeration values */
 #define SIMCALL_TYPE(type, name, answer, res, ...)\
        [type] = STRINGIFY(MAP(SIMCALL_FORMAT, __VA_ARGS__))
index faac628..cf5caa2 100644 (file)
@@ -14,7 +14,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
 
 /* generate strings from the enumeration values */
 static const char* simcall_names[] = {
-SIMCALL_LIST(SIMCALL_TYPE, SIMCALL_SEP_COMMA)
+SIMCALL_LIST(SIMCALL_STRING_TYPE, SIMCALL_SEP_COMMA)
 [SIMCALL_NONE] = "NONE"
 };