Changeset 984a9ba in mainline for uspace/srv/logger/ctl.c
- Timestamp:
- 2018-07-05T09:34:09Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/ctl.c
r76f566d r984a9ba 63 63 } 64 64 65 void logger_connection_handler_control( cap_call_handle_t chandle)65 void logger_connection_handler_control(ipc_call_t *icall) 66 66 { 67 67 errno_t rc; 68 68 int fd; 69 69 70 async_answer_0( chandle, EOK);70 async_answer_0(icall, EOK); 71 71 logger_log("control: new client.\n"); 72 72 73 73 while (true) { 74 74 ipc_call_t call; 75 cap_call_handle_t chandle =async_get_call(&call);75 async_get_call(&call); 76 76 77 77 if (!IPC_GET_IMETHOD(call)) … … 81 81 case LOGGER_CONTROL_SET_DEFAULT_LEVEL: 82 82 rc = set_default_logging_level(IPC_GET_ARG1(call)); 83 async_answer_0( chandle, rc);83 async_answer_0(&call, rc); 84 84 break; 85 85 case LOGGER_CONTROL_SET_LOG_LEVEL: 86 86 rc = handle_log_level_change(IPC_GET_ARG1(call)); 87 async_answer_0( chandle, rc);87 async_answer_0(&call, rc); 88 88 break; 89 89 case LOGGER_CONTROL_SET_ROOT: … … 93 93 vfs_put(fd); 94 94 } 95 async_answer_0( chandle, rc);95 async_answer_0(&call, rc); 96 96 break; 97 97 default: 98 async_answer_0( chandle, EINVAL);98 async_answer_0(&call, EINVAL); 99 99 break; 100 100 }
Note:
See TracChangeset
for help on using the changeset viewer.