From ebd7bcbf3470561e0d7d251e73476c04ed3c1ad3 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 28 Mar 2012 21:26:18 +0200 Subject: [PATCH] Remove --*-log options that are deprecated since nearly 5 years. See commit 795baf0. --- src/xbt/log.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/xbt/log.c b/src/xbt/log.c index 1870166d43..8c78678619 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -715,18 +715,7 @@ void xbt_log_init(int *argc, char **argv) /* Set logs and init log submodule */ for (j = i = 1; i < *argc; i++) { - if (!strncmp(argv[i], "--log=", strlen("--log=")) || - !strncmp(argv[i], "--gras-log=", strlen("--gras-log=")) || - !strncmp(argv[i], "--surf-log=", strlen("--surf-log=")) || - !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="))) - XBT_WARN - ("Option %.*s is deprecated and will disapear in the future. Use --log instead.", - (int) (strchr(argv[i], '=') - argv[i]), argv[i]); - + if (!strncmp(argv[i], "--log=", strlen("--log="))) { opt = strchr(argv[i], '='); opt++; xbt_log_control_set(opt); -- 2.20.1