Changeset 6e596bd in mainline
- Timestamp:
- 2012-08-17T10:04:49Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf9ac4e8
- Parents:
- b1912b0c
- Location:
- uspace
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/log.c
rb1912b0c r6e596bd 145 145 return ENOMEM; 146 146 147 logger_session = service_connect_blocking(EXCHANGE_SERIALIZE, SERVICE_LOGGER, LOGGER_INTERFACE_ SINK, 0);147 logger_session = service_connect_blocking(EXCHANGE_SERIALIZE, SERVICE_LOGGER, LOGGER_INTERFACE_WRITER, 0); 148 148 if (logger_session == NULL) { 149 149 return ENOMEM; -
uspace/lib/c/generic/io/logctl.c
rb1912b0c r6e596bd 74 74 75 75 rc = (int) async_req_1_0(exchange, 76 LOGGER_C TL_SET_DEFAULT_LEVEL, new_level);76 LOGGER_CONTROL_SET_DEFAULT_LEVEL, new_level); 77 77 78 78 async_exchange_end(exchange); … … 88 88 return rc; 89 89 90 aid_t reg_msg = async_send_1(exchange, LOGGER_C TL_SET_LOG_LEVEL,90 aid_t reg_msg = async_send_1(exchange, LOGGER_CONTROL_SET_LOG_LEVEL, 91 91 new_level, NULL); 92 92 rc = async_data_write_start(exchange, logname, str_size(logname)); -
uspace/lib/c/include/ipc/logger.h
rb1912b0c r6e596bd 37 37 38 38 typedef enum { 39 LOGGER_C TL_SET_DEFAULT_LEVEL = IPC_FIRST_USER_METHOD,40 LOGGER_C TL_SET_LOG_LEVEL39 LOGGER_CONTROL_SET_DEFAULT_LEVEL = IPC_FIRST_USER_METHOD, 40 LOGGER_CONTROL_SET_LOG_LEVEL 41 41 } logger_control_request_t; 42 42 … … 48 48 49 49 typedef enum { 50 LOGGER_CONNECT = IPC_FIRST_USER_METHOD,51 LOGGER_GET_MESSAGE52 } logger_source_request_t;53 54 typedef enum {55 50 /** Interface for controlling logger behavior. */ 56 51 LOGGER_INTERFACE_CONTROL, 57 52 /** Interface for servers writing to the log. */ 58 LOGGER_INTERFACE_SINK, 59 /** Interface for clients displaying the log. */ 60 LOGGER_INTERFACE_SOURCE 53 LOGGER_INTERFACE_WRITER 61 54 } logger_interface_t; 62 55 -
uspace/srv/logger/ctl.c
rb1912b0c r6e596bd 74 74 75 75 switch (IPC_GET_IMETHOD(call)) { 76 case LOGGER_C TL_SET_DEFAULT_LEVEL: {76 case LOGGER_CONTROL_SET_DEFAULT_LEVEL: { 77 77 int rc = set_default_logging_level(IPC_GET_ARG1(call)); 78 78 async_answer_0(callid, rc); 79 79 break; 80 80 } 81 case LOGGER_C TL_SET_LOG_LEVEL: {81 case LOGGER_CONTROL_SET_LOG_LEVEL: { 82 82 int rc = handle_log_level_change(IPC_GET_ARG1(call)); 83 83 async_answer_0(callid, rc); -
uspace/srv/logger/main.c
rb1912b0c r6e596bd 56 56 logger_connection_handler_control(iid); 57 57 break; 58 case LOGGER_INTERFACE_ SINK:58 case LOGGER_INTERFACE_WRITER: 59 59 logger_connection_handler_writer(iid); 60 60 break;
Note:
See TracChangeset
for help on using the changeset viewer.