From: mquinson Date: Tue, 5 Jun 2007 09:22:38 +0000 (+0000) Subject: Deprecate all the --*-log option. With the module multiplication, it became a mess... X-Git-Tag: v3.3~1801 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/795baf05d5f795265283aeaa6e52f718b75e3792 Deprecate all the --*-log option. With the module multiplication, it became a mess. --log is now prefered git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3559 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/log.c b/src/xbt/log.c index b1d788b4da..34a9101fcf 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -405,7 +405,11 @@ void xbt_log_init(int *argc,char **argv) { !strncmp(argv[i],"--msg-log=",strlen("--msg-log=")) || !strncmp(argv[i],"--simix-log=",strlen("--simix-log=")) || !strncmp(argv[i],"--xbt-log=",strlen("--xbt-log="))){ - + + if (strncmp(argv[i],"--log=",strlen("--log="))) + WARN2("Option %.*s is deprecated and will disapear in the future. Use --log instead.", + strchr(argv[i],'=')-argv[i],argv[i]); + opt=strchr(argv[i],'='); opt++; xbt_log_control_set(opt);