From: Augustin Degomme Date: Tue, 9 Jul 2013 12:29:42 +0000 (+0200) Subject: Crash with message when trying to use a log level that is not allowed (without enable... X-Git-Tag: v3_9_90~158 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/096cc96b4a60a70773a3cc632d56e6025669ba5a?hp=9e57b07d6be48367da8f9d9fa503de304aeacd72;ds=sidebyside Crash with message when trying to use a log level that is not allowed (without enable_debug, for example) --- diff --git a/include/xbt/log.h b/include/xbt/log.h index fe199ac475..d631073f48 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -60,7 +60,7 @@ typedef enum { /* * define NLOG to disable at compilation time any logging request - * define NDEBUG to disable at compilation time any logging request of priority below INFO + * define NDEBUG to disable at compilation time any logging request of priority below VERBOSE */ diff --git a/src/xbt/log.c b/src/xbt/log.c index c560de6d9f..c966b11d00 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -1100,7 +1100,12 @@ static xbt_log_setting_t _xbt_log_parse_setting(const char *control_string) break; } } - if (i < xbt_log_priority_infinite) { + + if(ithresh = (e_xbt_log_priority_t) i; } else { THROWF(arg_error, 0,