Lines Matching full:level
19 #define DEBUG_OFF_LEVEL -1 /* level where debug is switched off */
23 #define DEBUG_DEFAULT_LEVEL 3 /* initial debug level */
35 unsigned long level : 3; member
49 int level; member
100 debug_entry_t *debug_event_common(debug_info_t *id, int level,
103 debug_entry_t *debug_exception_common(debug_info_t *id, int level,
125 * level would be logged. Otherwise returns false.
128 * @level: debug level
131 * - %true if level is less or equal to the current debug level.
133 static inline bool debug_level_enabled(debug_info_t *id, int level) in debug_level_enabled() argument
135 return level <= id->level; in debug_level_enabled()
140 * (if level <= actual debug level)
143 * @level: debug level
151 static inline debug_entry_t *debug_event(debug_info_t *id, int level, in debug_event() argument
154 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_event()
156 return debug_event_common(id, level, data, length); in debug_event()
161 * (if level <= actual debug level)
164 * @level: debug level
171 static inline debug_entry_t *debug_int_event(debug_info_t *id, int level, in debug_int_event() argument
176 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_int_event()
178 return debug_event_common(id, level, &t, sizeof(unsigned int)); in debug_int_event()
183 * (if level <= actual debug level)
186 * @level: debug level
193 static inline debug_entry_t *debug_long_event(debug_info_t *id, int level, in debug_long_event() argument
198 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_long_event()
200 return debug_event_common(id, level, &t, sizeof(unsigned long)); in debug_long_event()
205 * debug area (if level <= actual debug level)
208 * @level: debug level
215 static inline debug_entry_t *debug_text_event(debug_info_t *id, int level, in debug_text_event() argument
218 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_text_event()
220 return debug_event_common(id, level, txt, strlen(txt)); in debug_text_event()
228 __debug_sprintf_event(debug_info_t *id, int level, char *string, ...)
234 * (if level $<=$ actual debug level).
237 * @_level: debug level
253 if ((!__id) || (__level > __id->level)) \
263 * (if level <= actual debug level)
267 * @level: debug level
275 static inline debug_entry_t *debug_exception(debug_info_t *id, int level, in debug_exception() argument
278 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_exception()
280 return debug_exception_common(id, level, data, length); in debug_exception()
285 * (if level <= actual debug level)
289 * @level: debug level
296 static inline debug_entry_t *debug_int_exception(debug_info_t *id, int level, in debug_int_exception() argument
301 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_int_exception()
303 return debug_exception_common(id, level, &t, sizeof(unsigned int)); in debug_int_exception()
308 * (if level <= actual debug level)
312 * @level: debug level
319 static inline debug_entry_t *debug_long_exception (debug_info_t *id, int level, in debug_long_exception() argument
324 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_long_exception()
326 return debug_exception_common(id, level, &t, sizeof(unsigned long)); in debug_long_exception()
331 * debug area (if level <= actual debug level)
336 * @level: debug level
343 static inline debug_entry_t *debug_text_exception(debug_info_t *id, int level, in debug_text_exception() argument
346 if ((!id) || (level > id->level) || (id->pages_per_area == 0)) in debug_text_exception()
348 return debug_exception_common(id, level, txt, strlen(txt)); in debug_text_exception()
356 __debug_sprintf_exception(debug_info_t *id, int level, char *string, ...)
363 * (if level <= actual debug level)
367 * @_level: debug level
383 if ((!__id) || (__level > __id->level)) \
435 .level = DEBUG_DEFAULT_LEVEL, \