Ignore:
File:
1 edited

Legend:

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

    rf9b2cb4c r1d6dd2a  
    4141#include <io/log.h>
    4242#include <ipc/logger.h>
     43#include <str.h>
    4344#include <ns.h>
    4445
     
    7475 * @return Error code of the conversion or EOK on success.
    7576 */
    76 static int logger_message(async_sess_t *session, log_t log, log_level_t level, char *message)
     77static errno_t logger_message(async_sess_t *session, log_t log, log_level_t level, char *message)
    7778{
    7879        async_exch_t *exchange = async_exchange_begin(session);
     
    8889        aid_t reg_msg = async_send_2(exchange, LOGGER_WRITER_MESSAGE,
    8990            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;
    9293        async_wait_for(reg_msg, &reg_msg_rc);
    9394
     
    127128 * @return Error code of the conversion or EOK on success.
    128129 */
    129 int log_level_from_str(const char *name, log_level_t *level_out)
     130errno_t log_level_from_str(const char *name, log_level_t *level_out)
    130131{
    131132        log_level_t level = LVL_FATAL;
     
    160161 * @param prog_name Program name, will be printed as part of message
    161162 */
    162 int log_init(const char *prog_name)
     163errno_t log_init(const char *prog_name)
    163164{
    164165        log_prog_name = str_dup(prog_name);
     
    198199        aid_t reg_msg = async_send_1(exchange, LOGGER_WRITER_CREATE_LOG,
    199200            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;
    202203        async_wait_for(reg_msg, &reg_msg_rc);
    203204
Note: See TracChangeset for help on using the changeset viewer.