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