Changeset 1c67b41 in mainline for uspace/lib/c/generic/io/log.c
- Timestamp:
- 2012-08-16T11:20:24Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eab3d04
- Parents:
- 04da852
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/log.c
r04da852 r1c67b41 46 46 static const char *log_prog_name; 47 47 48 static const char *log_level_names[] = { 49 "fatal", 50 "error", 51 "warn", 52 "note", 53 "debug", 54 "debug2" 55 }; 56 48 57 /** IPC session with the logger service. */ 49 58 static async_sess_t *logger_session; … … 162 171 } 163 172 173 const char *log_level_str(log_level_t level) 174 { 175 if (level >= LVL_LIMIT) 176 return "unknown"; 177 else 178 return log_level_names[level]; 179 } 180 164 181 /** Initialize the logging system. 165 182 *
Note:
See TracChangeset
for help on using the changeset viewer.