From: Arnaud Giersch Date: Sat, 5 Nov 2011 20:50:41 +0000 (+0100) Subject: Fix the fixme. X-Git-Tag: exp_20120216~477 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc6fa272fd0492adba9c22775a06bba660185c03 Fix the fixme. And don't short-circuit the logging facility. --- diff --git a/src/surf/maxmin.c b/src/surf/maxmin.c index 2efcd6f2c6..dc331ad1a4 100644 --- a/src/surf/maxmin.c +++ b/src/surf/maxmin.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2004-2011. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -423,8 +423,7 @@ void lmm_print(lmm_system_t sys) trace_buf = xbt_realloc(trace_buf, strlen(trace_buf) + strlen(print_buf) + 1); strcat(trace_buf, print_buf); - fprintf(stderr, "%s", trace_buf); - //XBT_DEBUG("%20s", trace_buf); FIXME + XBT_DEBUG("%20s", trace_buf); trace_buf[0] = '\000'; XBT_DEBUG("Constraints"); @@ -466,8 +465,7 @@ void lmm_print(lmm_system_t sys) strlen(trace_buf) + strlen(print_buf) + 1); strcat(trace_buf, print_buf); } - // XBT_DEBUG("%s", trace_buf); - fprintf(stderr, "%s\n", trace_buf); + XBT_DEBUG("%s", trace_buf); trace_buf[0] = '\000'; xbt_assert(!double_positive(sum - cnst->bound), "Incorrect value (%f is not smaller than %f): %g",