Changeset 338d54a7 in mainline for uspace/srv/logger/ctl.c
- Timestamp:
- 2018-03-10T22:55:07Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 850fd32
- Parents:
- 5ef16903
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/ctl.c
r5ef16903 r338d54a7 65 65 void logger_connection_handler_control(ipc_callid_t callid) 66 66 { 67 errno_t rc; 68 int fd; 69 67 70 async_answer_0(callid, EOK); 68 71 logger_log("control: new client.\n"); … … 76 79 77 80 switch (IPC_GET_IMETHOD(call)) { 78 case LOGGER_CONTROL_SET_DEFAULT_LEVEL: {79 errno_trc = set_default_logging_level(IPC_GET_ARG1(call));81 case LOGGER_CONTROL_SET_DEFAULT_LEVEL: 82 rc = set_default_logging_level(IPC_GET_ARG1(call)); 80 83 async_answer_0(callid, rc); 81 84 break; 82 } 83 case LOGGER_CONTROL_SET_LOG_LEVEL: { 84 errno_t rc = handle_log_level_change(IPC_GET_ARG1(call)); 85 case LOGGER_CONTROL_SET_LOG_LEVEL: 86 rc = handle_log_level_change(IPC_GET_ARG1(call)); 85 87 async_answer_0(callid, rc); 86 88 break; 87 } 88 case LOGGER_CONTROL_SET_ROOT: { 89 int fd; 90 errno_t rc = vfs_receive_handle(true, &fd); 89 case LOGGER_CONTROL_SET_ROOT: 90 rc = vfs_receive_handle(true, &fd); 91 91 if (rc == EOK) { 92 92 rc = vfs_root_set(fd); … … 95 95 async_answer_0(callid, rc); 96 96 break; 97 }98 97 default: 99 98 async_answer_0(callid, EINVAL);
Note:
See TracChangeset
for help on using the changeset viewer.