From: discomfitor Date: Thu, 8 Dec 2011 04:11:54 +0000 (+0000) Subject: fix eina_log*level_check() to return the value that the docs claim will be returned X-Git-Tag: 2.0_alpha~37^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb91eaf6fda216a74fc64b3e7c36eef468140fce;p=framework%2Fuifw%2Feina.git fix eina_log*level_check() to return the value that the docs claim will be returned how did nobody catch this sooner? git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@66013 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/ChangeLog b/ChangeLog index dd4859d..7d261b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -155,3 +155,7 @@ 2011-12-02 Mike Blumenkrantz (discomfitor/zmike) * Add eina_mempool_calloc for returning zeroed memory + +2011-12-07 Mike Blumenkrantz (discomfitor/zmike) + + * eina_log*level_check() functions now return the correct value diff --git a/src/include/eina_inline_log.x b/src/include/eina_inline_log.x index 4cdd7d8..53d8afb 100644 --- a/src/include/eina_inline_log.x +++ b/src/include/eina_inline_log.x @@ -49,7 +49,7 @@ static inline Eina_Bool eina_log_level_check(int level) { - return eina_log_level_get() <= level; + return eina_log_level_get() >= level; } /** @@ -81,7 +81,7 @@ eina_log_domain_level_check(int domain, int level) int dom_level = eina_log_domain_registered_level_get(domain); if (EINA_UNLIKELY(dom_level == EINA_LOG_LEVEL_UNKNOWN)) return EINA_FALSE; - return dom_level <= level; + return dom_level >= level; } /**