Commit 1752a481 authored by Pekka Pessi's avatar Pekka Pessi

su_debug.h: remove check for SU_LOG

SU_LOG is always non-NULL, log level is always >= 0.

MeeGo Coverity issues CID#11748, CID#7649, etc
parent 5cc9dc3e
......@@ -62,9 +62,8 @@ SOFIA_BEGIN_DECLS
#endif
#define SU_LOG_LEVEL \
((SU_LOG != NULL && SU_LOG->log_init) == 0 ? 9 : \
((SU_LOG != NULL && SU_LOG->log_init > 1) ? \
SU_LOG->log_level : su_log_default->log_level))
((SU_LOG->log_init) == 0 ? 9 : \
((SU_LOG->log_init > 1) ? SU_LOG->log_level : su_log_default->log_level))
#if SU_DEBUG_MAX >= 0
#ifndef SU_LOG
......@@ -86,7 +85,7 @@ SU_DEBUG_DEF(0)
*
* @sa su_llog(), su_vllog(), #su_log_t, @ref debug_logs
*/
#define SU_DEBUG_0(x) (SU_LOG_LEVEL >= 0 ? (su_debug_0 x) : (void)0)
#define SU_DEBUG_0(x) (su_debug_0 x)
/** Log C library errors. */
#define SU_LERROR(s) (su_llog(SU_LOG, 1, "%s: %s\n", (s), strerror(errno)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment