From: navarrop Date: Tue, 6 Jul 2010 14:06:49 +0000 (+0000) Subject: [From Arnaud Giersch] Fix the following problems in xbt/log: X-Git-Tag: v3_5~840 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/963548d1d1605cea97d1923d069a56e8b5df1daa?hp=963548d1d1605cea97d1923d069a56e8b5df1daa [From Arnaud Giersch] Fix the following problems in xbt/log: * segmentation fault in _xbt_log_cat_init() when running with "--log=log.thres:verbose" * messages in _xbt_log_cat_apply_set() are not sent to "log" category * the wrong category is used in the condition for the last message of _xbt_log_cat_init() ("inherited threshold") The standard logging macros use _XBT_LOG_ISENABLED, which calls _xbt_log_cat_init(). Thus, if we want to avoid an infinite recursion, we can not use the standard logging macros in _xbt_log_cat_init(), and in _xbt_log_cat_apply_set() which is called from it. To circumvent the problem, we define the macro_xbt_log_init() as (0) for the length of the affected functions, and we do not forget to undefine it at the end! This permits to make the code far more readable. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7977 48e7efb5-ca39-0410-a469-dd3cf9ba447f ---