Changeset 42bde6a in mainline
- Timestamp:
- 2012-09-07T08:53:35Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 54a0070
- Parents:
- e0c836e8
- Location:
- uspace/srv/logger
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/ctl.c
re0c836e8 r42bde6a 66 66 { 67 67 async_answer_0(callid, EOK); 68 printf(NAME "/control: new client.\n");68 logger_log("control: new client.\n"); 69 69 70 70 while (true) { … … 92 92 } 93 93 94 printf(NAME "/control: client terminated.\n");94 logger_log("control: client terminated.\n"); 95 95 } 96 96 -
uspace/srv/logger/logger.h
re0c836e8 r42bde6a 46 46 #define NAME "logger" 47 47 #define LOG_LEVEL_USE_DEFAULT (LVL_LIMIT + 1) 48 49 #ifdef LOGGER_LOG 50 #define logger_log(fmt, ...) printf(NAME ": " fmt, ##__VA_ARGS__) 51 #else 52 #define logger_log(fmt, ...) (void)0 53 #endif 48 54 49 55 typedef struct logger_log logger_log_t; -
uspace/srv/logger/logs.c
re0c836e8 r42bde6a 276 276 } 277 277 278 printf("Destroyinglog %s.\n", log->full_name);278 logger_log("Destroyed log %s.\n", log->full_name); 279 279 280 280 free(log->name); -
uspace/srv/logger/writer.c
re0c836e8 r42bde6a 98 98 async_answer_0(callid, EOK); 99 99 100 printf(NAME "/writer: new client.\n");100 logger_log("writer: new client.\n"); 101 101 102 102 logger_registered_logs_t registered_logs; … … 139 139 140 140 unregister_logs(®istered_logs); 141 logger_log("writer: client terminated.\n"); 141 142 } 142 143
Note:
See TracChangeset
for help on using the changeset viewer.