Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/log.c

    r1d6dd2a rf9b2cb4c  
    4141#include <io/log.h>
    4242#include <ipc/logger.h>
    43 #include <str.h>
    4443#include <ns.h>
    4544
     
    7574 * @return Error code of the conversion or EOK on success.
    7675 */
    77 static errno_t logger_message(async_sess_t *session, log_t log, log_level_t level, char *message)
     76static int logger_message(async_sess_t *session, log_t log, log_level_t level, char *message)
    7877{
    7978        async_exch_t *exchange = async_exchange_begin(session);
     
    8988        aid_t reg_msg = async_send_2(exchange, LOGGER_WRITER_MESSAGE,
    9089            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;
    9392        async_wait_for(reg_msg, &reg_msg_rc);
    9493
     
    128127 * @return Error code of the conversion or EOK on success.
    129128 */
    130 errno_t log_level_from_str(const char *name, log_level_t *level_out)
     129int log_level_from_str(const char *name, log_level_t *level_out)
    131130{
    132131        log_level_t level = LVL_FATAL;
     
    161160 * @param prog_name Program name, will be printed as part of message
    162161 */
    163 errno_t log_init(const char *prog_name)
     162int log_init(const char *prog_name)
    164163{
    165164        log_prog_name = str_dup(prog_name);
     
    199198        aid_t reg_msg = async_send_1(exchange, LOGGER_WRITER_CREATE_LOG,
    200199            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;
    203202        async_wait_for(reg_msg, &reg_msg_rc);
    204203
Note: See TracChangeset for help on using the changeset viewer.