Changeset 14de4106 in mainline for uspace/lib/c/generic/io/log.c
- Timestamp:
- 2012-07-17T06:14:58Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 76d92db1
- Parents:
- 3ab9de0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/log.c
r3ab9de0 r14de4106 194 194 } 195 195 196 bool __log_shall_record(log_level_t level) 197 { 198 return get_current_observed_level() >= level; 199 } 200 196 201 /** Write an entry to the log. 197 202 * … … 201 206 * @param fmt Format string (no traling newline). 202 207 */ 203 void log_msg(log_level_t level, const char *fmt, ...)208 void __log_msg(log_level_t level, const char *fmt, ...) 204 209 { 205 210 va_list args; 206 211 207 212 va_start(args, fmt); 208 log_msgv(level, fmt, args);213 __log_msgv(level, fmt, args); 209 214 va_end(args); 210 215 } … … 217 222 * @param fmt Format string (no trailing newline) 218 223 */ 219 void log_msgv(log_level_t level, const char *fmt, va_list args)224 void __log_msgv(log_level_t level, const char *fmt, va_list args) 220 225 { 221 226 assert(level < LVL_LIMIT);
Note:
See TracChangeset
for help on using the changeset viewer.