Changes in uspace/lib/c/generic/io/logctl.c [b7fd2a0:582a0b8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/logctl.c
rb7fd2a0 r582a0b8 43 43 static async_sess_t *logger_session = NULL; 44 44 45 static errno_t start_logger_exchange(async_exch_t **exchange_out)45 static int start_logger_exchange(async_exch_t **exchange_out) 46 46 { 47 47 assert(exchange_out != NULL); … … 78 78 * @return Error code of the conversion or EOK on success. 79 79 */ 80 errno_t logctl_set_default_level(log_level_t new_level)80 int logctl_set_default_level(log_level_t new_level) 81 81 { 82 82 async_exch_t *exchange = NULL; 83 errno_t rc = start_logger_exchange(&exchange);83 int rc = start_logger_exchange(&exchange); 84 84 if (rc != EOK) 85 85 return rc; 86 86 87 rc = ( errno_t) async_req_1_0(exchange,87 rc = (int) async_req_1_0(exchange, 88 88 LOGGER_CONTROL_SET_DEFAULT_LEVEL, new_level); 89 89 … … 101 101 * @return Error code of the conversion or EOK on success. 102 102 */ 103 errno_t logctl_set_log_level(const char *logname, log_level_t new_level)103 int logctl_set_log_level(const char *logname, log_level_t new_level) 104 104 { 105 105 async_exch_t *exchange = NULL; 106 errno_t rc = start_logger_exchange(&exchange);106 int rc = start_logger_exchange(&exchange); 107 107 if (rc != EOK) 108 108 return rc; … … 111 111 new_level, NULL); 112 112 rc = async_data_write_start(exchange, logname, str_size(logname)); 113 errno_t reg_msg_rc;113 sysarg_t reg_msg_rc; 114 114 async_wait_for(reg_msg, ®_msg_rc); 115 115 … … 119 119 return rc; 120 120 121 return ( errno_t) reg_msg_rc;121 return (int) reg_msg_rc; 122 122 } 123 123 … … 126 126 * @return Error code or EOK on success. 127 127 */ 128 errno_t logctl_set_root(void)128 int logctl_set_root(void) 129 129 { 130 130 async_exch_t *exchange = NULL; 131 errno_t rc = start_logger_exchange(&exchange);131 int rc = start_logger_exchange(&exchange); 132 132 if (rc != EOK) 133 133 return rc; … … 137 137 rc = vfs_pass_handle(vfs_exch, vfs_root(), exchange); 138 138 vfs_exchange_end(vfs_exch); 139 errno_t reg_msg_rc;139 sysarg_t reg_msg_rc; 140 140 async_wait_for(reg_msg, ®_msg_rc); 141 141 … … 145 145 return rc; 146 146 147 return ( errno_t) reg_msg_rc;147 return (int) reg_msg_rc; 148 148 } 149 149
Note:
See TracChangeset
for help on using the changeset viewer.