Changeset 132ab5d1 in mainline for uspace/srv/bd/vbd/vbd.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (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.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/vbd/vbd.c

    r8bfb163 r132ab5d1  
    3636#include <async.h>
    3737#include <errno.h>
     38#include <str_error.h>
    3839#include <io/log.h>
    3940#include <ipc/services.h>
     
    6970        rc = loc_server_register(NAME);
    7071        if (rc != EOK) {
    71                 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc);
     72                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server: %s.", str_error(rc));
    7273                return EEXIST;
    7374        }
     
    7576        rc = loc_service_register(SERVICE_NAME_VBD, &ctl_sid);
    7677        if (rc != EOK) {
    77                 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc);
     78                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service: %s.", str_error(rc));
    7879                return EEXIST;
    7980        }
     
    114115        }
    115116
    116         sysarg_t retval = async_data_read_finalize(callid, id_buf, size);
     117        int retval = async_data_read_finalize(callid, id_buf, size);
    117118        free(id_buf);
    118119
     
    171172        ltype = IPC_GET_ARG2(*icall);
    172173        rc = vbds_label_create(disk_sid, ltype);
    173         async_answer_0(iid, (sysarg_t) rc);
     174        async_answer_0(iid, rc);
    174175}
    175176
     
    183184        disk_sid = IPC_GET_ARG1(*icall);
    184185        rc = vbds_label_delete(disk_sid);
    185         async_answer_0(iid, (sysarg_t) rc);
     186        async_answer_0(iid, rc);
    186187}
    187188
     
    218219        }
    219220
    220         sysarg_t retval = async_data_read_finalize(callid, id_buf, size);
     221        int retval = async_data_read_finalize(callid, id_buf, size);
    221222        free(id_buf);
    222223
     
    302303        }
    303304
    304         async_answer_1(iid, (sysarg_t)rc, (sysarg_t)part);
     305        async_answer_1(iid, rc, (sysarg_t)part);
    305306}
    306307
     
    314315        part = IPC_GET_ARG1(*icall);
    315316        rc = vbds_part_delete(part);
    316         async_answer_0(iid, (sysarg_t) rc);
     317        async_answer_0(iid, rc);
    317318}
    318319
Note: See TracChangeset for help on using the changeset viewer.