forked from enlightenment/efl
fix eina_log*level_check() to return the value that the docs claim will be returned
how did nobody catch this sooner? SVN revision: 66013
This commit is contained in:
parent
29f67c9bc5
commit
8ada55917a
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue