X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1253e13cfd127a81c36d903c3f55cbfb5248c985..8750e7f378b5d48477e1b0b2796a437366a3ea2b:/src/xbt/log.c diff --git a/src/xbt/log.c b/src/xbt/log.c index 555de654c5..e80332ab41 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -13,6 +13,7 @@ #include /* snprintf */ #include /* snprintf */ #include "gras_config.h" /* to get a working stdarg.h */ +#include "portable.h" /* to get a working stdarg.h */ #include "xbt_modinter.h" @@ -46,6 +47,7 @@ - \ref log_internals - \ref log_in_perf - \ref log_in_app + - \ref XBT_log_cats \section log_overview 1. Introduction @@ -546,7 +548,7 @@ static void _xbt_log_parse_setting(const char* control_string, xbt_assert1(*dot == '.' && *eq == '=', "Invalid control string '%s'",control_string); - if (!strncmp(dot + 1, "thresh", min(eq - dot - 1,strlen("thresh")))) { + if (!strncmp(dot + 1, "thresh", min((size_t)(eq - dot - 1),strlen("thresh")))) { int i; char *neweq=xbt_strdup(eq+1); char *p=neweq-1; @@ -565,7 +567,7 @@ static void _xbt_log_parse_setting(const char* control_string, } } if (ithresh=i; + set->thresh= (e_xbt_log_priority_t) i; } else { xbt_assert1(FALSE,"Unknown priority name: %s",eq+1); }