From: shenshei Date: Mon, 3 Dec 2012 16:54:02 +0000 (+0100) Subject: Fix debug message in simix X-Git-Tag: v3_9_rc1~86^2~197 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9d3c2875f1f2f1f758514ddc54a3d589ef52743c Fix debug message in simix --- diff --git a/src/simix/smx_smurf_private.h b/src/simix/smx_smurf_private.h index 362b86fe64..46d184a59d 100644 --- a/src/simix/smx_smurf_private.h +++ b/src/simix/smx_smurf_private.h @@ -159,6 +159,10 @@ #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__)) diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index faac628ff6..cf5caa2179 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -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" };