Ignore:
File:
1 edited

Legend:

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

    r582a0b8 rb7fd2a0  
    4343static async_sess_t *logger_session = NULL;
    4444
    45 static int start_logger_exchange(async_exch_t **exchange_out)
     45static errno_t start_logger_exchange(async_exch_t **exchange_out)
    4646{
    4747        assert(exchange_out != NULL);
     
    7878 * @return Error code of the conversion or EOK on success.
    7979 */
    80 int logctl_set_default_level(log_level_t new_level)
     80errno_t logctl_set_default_level(log_level_t new_level)
    8181{
    8282        async_exch_t *exchange = NULL;
    83         int rc = start_logger_exchange(&exchange);
     83        errno_t rc = start_logger_exchange(&exchange);
    8484        if (rc != EOK)
    8585                return rc;
    8686
    87         rc = (int) async_req_1_0(exchange,
     87        rc = (errno_t) async_req_1_0(exchange,
    8888            LOGGER_CONTROL_SET_DEFAULT_LEVEL, new_level);
    8989
     
    101101 * @return Error code of the conversion or EOK on success.
    102102 */
    103 int logctl_set_log_level(const char *logname, log_level_t new_level)
     103errno_t logctl_set_log_level(const char *logname, log_level_t new_level)
    104104{
    105105        async_exch_t *exchange = NULL;
    106         int rc = start_logger_exchange(&exchange);
     106        errno_t rc = start_logger_exchange(&exchange);
    107107        if (rc != EOK)
    108108                return rc;
     
    111111            new_level, NULL);
    112112        rc = async_data_write_start(exchange, logname, str_size(logname));
    113         sysarg_t reg_msg_rc;
     113        errno_t reg_msg_rc;
    114114        async_wait_for(reg_msg, &reg_msg_rc);
    115115
     
    119119                return rc;
    120120
    121         return (int) reg_msg_rc;
     121        return (errno_t) reg_msg_rc;
    122122}
    123123
     
    126126 * @return Error code or EOK on success.
    127127 */
    128 int logctl_set_root(void)
     128errno_t logctl_set_root(void)
    129129{
    130130        async_exch_t *exchange = NULL;
    131         int rc = start_logger_exchange(&exchange);
     131        errno_t rc = start_logger_exchange(&exchange);
    132132        if (rc != EOK)
    133133                return rc;
     
    137137        rc = vfs_pass_handle(vfs_exch, vfs_root(), exchange);
    138138        vfs_exchange_end(vfs_exch);
    139         sysarg_t reg_msg_rc;
     139        errno_t reg_msg_rc;
    140140        async_wait_for(reg_msg, &reg_msg_rc);
    141141
     
    145145                return rc;
    146146
    147         return (int) reg_msg_rc;
     147        return (errno_t) reg_msg_rc;
    148148}
    149149
Note: See TracChangeset for help on using the changeset viewer.