Changeset 132ab5d1 in mainline for uspace/srv/bd/vbd/vbd.c
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- 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. - File:
-
- 1 edited
-
uspace/srv/bd/vbd/vbd.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/vbd/vbd.c
r8bfb163 r132ab5d1 36 36 #include <async.h> 37 37 #include <errno.h> 38 #include <str_error.h> 38 39 #include <io/log.h> 39 40 #include <ipc/services.h> … … 69 70 rc = loc_server_register(NAME); 70 71 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)); 72 73 return EEXIST; 73 74 } … … 75 76 rc = loc_service_register(SERVICE_NAME_VBD, &ctl_sid); 76 77 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)); 78 79 return EEXIST; 79 80 } … … 114 115 } 115 116 116 sysarg_t retval = async_data_read_finalize(callid, id_buf, size);117 int retval = async_data_read_finalize(callid, id_buf, size); 117 118 free(id_buf); 118 119 … … 171 172 ltype = IPC_GET_ARG2(*icall); 172 173 rc = vbds_label_create(disk_sid, ltype); 173 async_answer_0(iid, (sysarg_t)rc);174 async_answer_0(iid, rc); 174 175 } 175 176 … … 183 184 disk_sid = IPC_GET_ARG1(*icall); 184 185 rc = vbds_label_delete(disk_sid); 185 async_answer_0(iid, (sysarg_t)rc);186 async_answer_0(iid, rc); 186 187 } 187 188 … … 218 219 } 219 220 220 sysarg_t retval = async_data_read_finalize(callid, id_buf, size);221 int retval = async_data_read_finalize(callid, id_buf, size); 221 222 free(id_buf); 222 223 … … 302 303 } 303 304 304 async_answer_1(iid, (sysarg_t)rc, (sysarg_t)part);305 async_answer_1(iid, rc, (sysarg_t)part); 305 306 } 306 307 … … 314 315 part = IPC_GET_ARG1(*icall); 315 316 rc = vbds_part_delete(part); 316 async_answer_0(iid, (sysarg_t)rc);317 async_answer_0(iid, rc); 317 318 } 318 319
Note:
See TracChangeset
for help on using the changeset viewer.
