Changes in uspace/lib/c/generic/io/log.c [f9b2cb4c:1d6dd2a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/log.c
rf9b2cb4c r1d6dd2a 41 41 #include <io/log.h> 42 42 #include <ipc/logger.h> 43 #include <str.h> 43 44 #include <ns.h> 44 45 … … 74 75 * @return Error code of the conversion or EOK on success. 75 76 */ 76 static int logger_message(async_sess_t *session, log_t log, log_level_t level, char *message)77 static errno_t logger_message(async_sess_t *session, log_t log, log_level_t level, char *message) 77 78 { 78 79 async_exch_t *exchange = async_exchange_begin(session); … … 88 89 aid_t reg_msg = async_send_2(exchange, LOGGER_WRITER_MESSAGE, 89 90 log, level, NULL); 90 int rc = async_data_write_start(exchange, message, str_size(message));91 sysarg_t reg_msg_rc;91 errno_t rc = async_data_write_start(exchange, message, str_size(message)); 92 errno_t reg_msg_rc; 92 93 async_wait_for(reg_msg, ®_msg_rc); 93 94 … … 127 128 * @return Error code of the conversion or EOK on success. 128 129 */ 129 int log_level_from_str(const char *name, log_level_t *level_out)130 errno_t log_level_from_str(const char *name, log_level_t *level_out) 130 131 { 131 132 log_level_t level = LVL_FATAL; … … 160 161 * @param prog_name Program name, will be printed as part of message 161 162 */ 162 int log_init(const char *prog_name)163 errno_t log_init(const char *prog_name) 163 164 { 164 165 log_prog_name = str_dup(prog_name); … … 198 199 aid_t reg_msg = async_send_1(exchange, LOGGER_WRITER_CREATE_LOG, 199 200 parent, &answer); 200 int rc = async_data_write_start(exchange, name, str_size(name));201 sysarg_t reg_msg_rc;201 errno_t rc = async_data_write_start(exchange, name, str_size(name)); 202 errno_t reg_msg_rc; 202 203 async_wait_for(reg_msg, ®_msg_rc); 203 204
Note:
See TracChangeset
for help on using the changeset viewer.