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