X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/955ed46a9db660b6aa384f765cb05860318c13ff..d5eb7913e18929137d97f8480a762198b802bed1:/src/xbt/log.c diff --git a/src/xbt/log.c b/src/xbt/log.c index 182f1fa522..48bb91114d 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -35,6 +35,7 @@ static void _free_setting(void *s) { const char *gras_log_priority_names[8] = { "NONE", + "TRACE", "DEBUG", "VERBOSE", "INFO", @@ -77,17 +78,19 @@ static void _apply_control(gras_log_category_t* cat) { if (cat->threshold <= gras_log_priority_verbose) { gras_log_event_t _log_ev = {cat,gras_log_priority_verbose,__FILE__,__FUNCTION__,__LINE__}; - _gras_log_event_log(&_log_ev, cat->name, - "Apply settings for category '%s': set threshold to %s (=%d)", - gras_log_priority_names[cat->threshold], cat->threshold); + _gras_log_event_log(&_log_ev, + "Apply settings for category '%s': set threshold to %s (=%d)", + cat->name, + gras_log_priority_names[cat->threshold], cat->threshold); } } } if (!found && cat->threshold <= gras_log_priority_verbose) { gras_log_event_t _log_ev = {cat,gras_log_priority_verbose,__FILE__,__FUNCTION__,__LINE__}; - _gras_log_event_log(&_log_ev, cat->name, + _gras_log_event_log(&_log_ev, "Category '%s': inherited threshold = %s (=%d)", + cat->name, gras_log_priority_names[cat->threshold], cat->threshold); } @@ -215,13 +218,13 @@ static gras_error_t _gras_log_parse_setting(const char* control_string, } DEBUG1("New priority name = %s",neweq); - for (i=0; i<6; i++) { + for (i=0; ithresh=i; } else { gras_assert1(FALSE,"Unknown priority name: %s",eq+1);