Go to the documentation of this file.
65((SU_LOG->log_init) == 0 ? 9 : \
66((SU_LOG->log_init > 1) ? SU_LOG->log_level : su_log_default->log_level))
70#define SU_LOG (su_log_default)
75#define SU_DEBUG_DEF(level) \
76 su_inline void su_debug_##level(char const *fmt, ...) \
77 __attribute__ ((__format__ (printf, 1, 2))); \
78 su_inline void su_debug_##level(char const *fmt, ...) \
79 { va_list ap; va_start(ap, fmt); su_vllog(SU_LOG, level, fmt, ap); va_end(ap); }
88#define SU_DEBUG_0(x) (su_debug_0 x)
91#define SU_LERROR(s) (su_llog(SU_LOG, 1, "%s: %s\n", (s), strerror(errno)))
93#define SU_LSERROR(s) \
94 (su_llog(SU_LOG, 1, "%s: %s\n", (s), su_strerror(su_errno())))
96#define SU_DEBUG_0(x) ((void)0)
97#define SU_LERROR(s) ((void)0)
98#define SU_LSERROR(s) ((void)0)
110#define SU_DEBUG_1(x) (SU_LOG_LEVEL >= 1 ? (su_debug_1 x) : (void)0)
112#define SU_DEBUG_1(x) (void)1
123#define SU_DEBUG_2(x) (SU_LOG_LEVEL >= 2 ? (su_debug_2 x) : (void)0)
125#define SU_DEBUG_2(x) (void)2
136#define SU_DEBUG_3(x) (SU_LOG_LEVEL >= 3 ? (su_debug_3 x) : (void)0)
138#define SU_DEBUG_3(x) (void)3
144#define SU_DEBUG_4(x) (SU_LOG_LEVEL >= 4 ? (su_debug_4 x) : (void)0)
146#define SU_DEBUG_4(x) (void)4
158#define SU_DEBUG_5(x) (SU_LOG_LEVEL >= 5 ? (su_debug_5 x) : (void)0)
160#define SU_DEBUG_5(x) (void)5
166#define SU_DEBUG_6(x) (SU_LOG_LEVEL >= 6 ? (su_debug_6 x) : (void)0)
168#define SU_DEBUG_6(x) (void)6
179#define SU_DEBUG_7(x) (SU_LOG_LEVEL >= 7 ? (su_debug_7 x) : (void)0)
181#define SU_DEBUG_7(x) (void)7
187#define SU_DEBUG_8(x) (SU_LOG_LEVEL >= 8 ? (su_debug_8 x) : (void)0)
189#define SU_DEBUG_8(x) (void)8
201#define SU_DEBUG_9(x) (SU_LOG_LEVEL >= 9 ? (su_debug_9 x) : (void)0)
203#define SU_DEBUG_9(x) (void)9
Log object.
Definition su_log.h:59
#define SOFIAPUBVAR
SOFIAPUBVAR declares an exported variable.
Definition su_config.h:68
Sofia-SIP 1.12.11devel -
Copyright (C) 2006 Nokia Corporation. All rights reserved.
Licensed under the terms of the GNU Lesser General Public License.