Changeset ab87db5 in mainline for uspace/srv/logger


Ignore:
Timestamp:
2019-02-23T17:16:01Z (7 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c193d83, ca0e838
Parents:
bc417660 (diff), 95a47b0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-23 17:16:01)
git-committer:
GitHub <noreply@…> (2019-02-23 17:16:01)
Message:

Merge pull request #157

Turn some function-like macros into functions

Location:
uspace/srv/logger
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/logger/ctl.c

    rbc417660 rab87db5  
    7575                async_get_call(&call);
    7676
    77                 if (!IPC_GET_IMETHOD(call)) {
     77                if (!ipc_get_imethod(&call)) {
    7878                        async_answer_0(&call, EOK);
    7979                        break;
    8080                }
    8181
    82                 switch (IPC_GET_IMETHOD(call)) {
     82                switch (ipc_get_imethod(&call)) {
    8383                case LOGGER_CONTROL_SET_DEFAULT_LEVEL:
    84                         rc = set_default_logging_level(IPC_GET_ARG1(call));
     84                        rc = set_default_logging_level(ipc_get_arg1(&call));
    8585                        async_answer_0(&call, rc);
    8686                        break;
    8787                case LOGGER_CONTROL_SET_LOG_LEVEL:
    88                         rc = handle_log_level_change(IPC_GET_ARG1(call));
     88                        rc = handle_log_level_change(ipc_get_arg1(&call));
    8989                        async_answer_0(&call, rc);
    9090                        break;
  • uspace/srv/logger/writer.c

    rbc417660 rab87db5  
    109109                async_get_call(&call);
    110110
    111                 if (!IPC_GET_IMETHOD(call)) {
     111                if (!ipc_get_imethod(&call)) {
    112112                        async_answer_0(&call, EOK);
    113113                        break;
    114114                }
    115115
    116                 switch (IPC_GET_IMETHOD(call)) {
     116                switch (ipc_get_imethod(&call)) {
    117117                case LOGGER_WRITER_CREATE_LOG:
    118                         log = handle_create_log(IPC_GET_ARG1(call));
     118                        log = handle_create_log(ipc_get_arg1(&call));
    119119                        if (log == NULL) {
    120120                                async_answer_0(&call, ENOMEM);
     
    130130                        break;
    131131                case LOGGER_WRITER_MESSAGE:
    132                         rc = handle_receive_message(IPC_GET_ARG1(call),
    133                             IPC_GET_ARG2(call));
     132                        rc = handle_receive_message(ipc_get_arg1(&call),
     133                            ipc_get_arg2(&call));
    134134                        async_answer_0(&call, rc);
    135135                        break;
Note: See TracChangeset for help on using the changeset viewer.