Changes in uspace/srv/bd/vbd/vbd.c [b7fd2a0:5772aa1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/vbd/vbd.c
rb7fd2a0 r5772aa1 36 36 #include <async.h> 37 37 #include <errno.h> 38 #include <str_error.h>39 38 #include <io/log.h> 40 39 #include <ipc/services.h> … … 57 56 static service_id_t ctl_sid; 58 57 59 static errno_t vbds_init(void)60 { 61 errno_t rc;58 static int vbds_init(void) 59 { 60 int rc; 62 61 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_init()"); 63 62 … … 70 69 rc = loc_server_register(NAME); 71 70 if (rc != EOK) { 72 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server : %s.", str_error(rc));71 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc); 73 72 return EEXIST; 74 73 } … … 76 75 rc = loc_service_register(SERVICE_NAME_VBD, &ctl_sid); 77 76 if (rc != EOK) { 78 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service : %s.", str_error(rc));77 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 79 78 return EEXIST; 80 79 } … … 92 91 size_t size; 93 92 size_t act_size; 94 errno_t rc;93 int rc; 95 94 96 95 if (!async_data_read_receive(&callid, &size)) { … … 115 114 } 116 115 117 errno_t retval = async_data_read_finalize(callid, id_buf, size);116 sysarg_t retval = async_data_read_finalize(callid, id_buf, size); 118 117 free(id_buf); 119 118 … … 125 124 service_id_t disk_sid; 126 125 vbd_disk_info_t dinfo; 127 errno_t rc;126 int rc; 128 127 129 128 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_disk_info_srv()"); … … 165 164 service_id_t disk_sid; 166 165 label_type_t ltype; 167 errno_t rc;166 int rc; 168 167 169 168 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_label_create_srv()"); … … 172 171 ltype = IPC_GET_ARG2(*icall); 173 172 rc = vbds_label_create(disk_sid, ltype); 174 async_answer_0(iid, rc);173 async_answer_0(iid, (sysarg_t) rc); 175 174 } 176 175 … … 178 177 { 179 178 service_id_t disk_sid; 180 errno_t rc;179 int rc; 181 180 182 181 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_label_delete_srv()"); … … 184 183 disk_sid = IPC_GET_ARG1(*icall); 185 184 rc = vbds_label_delete(disk_sid); 186 async_answer_0(iid, rc);185 async_answer_0(iid, (sysarg_t) rc); 187 186 } 188 187 … … 193 192 size_t act_size; 194 193 service_id_t sid; 195 errno_t rc;194 int rc; 196 195 197 196 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_label_get_parts_srv()"); … … 219 218 } 220 219 221 errno_t retval = async_data_read_finalize(callid, id_buf, size);220 sysarg_t retval = async_data_read_finalize(callid, id_buf, size); 222 221 free(id_buf); 223 222 … … 229 228 vbds_part_id_t part; 230 229 vbd_part_info_t pinfo; 231 errno_t rc;230 int rc; 232 231 233 232 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_part_get_info_srv()"); … … 270 269 vbd_part_spec_t pspec; 271 270 vbds_part_id_t part; 272 errno_t rc;271 int rc; 273 272 274 273 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_part_create_srv()"); … … 303 302 } 304 303 305 async_answer_1(iid, rc, (sysarg_t)part);304 async_answer_1(iid, (sysarg_t)rc, (sysarg_t)part); 306 305 } 307 306 … … 309 308 { 310 309 vbds_part_id_t part; 311 errno_t rc;310 int rc; 312 311 313 312 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_part_delete_srv()"); … … 315 314 part = IPC_GET_ARG1(*icall); 316 315 rc = vbds_part_delete(part); 317 async_answer_0(iid, rc);316 async_answer_0(iid, (sysarg_t) rc); 318 317 } 319 318 … … 323 322 label_ptype_t ptype; 324 323 label_pcnt_t pcnt; 325 errno_t rc;324 int rc; 326 325 327 326 log_msg(LOG_DEFAULT, LVL_DEBUG, "vbds_suggest_ptype_srv()"); … … 428 427 int main(int argc, char *argv[]) 429 428 { 430 errno_t rc;429 int rc; 431 430 432 431 printf("%s: Virtual Block Device service\n", NAME);
Note:
See TracChangeset
for help on using the changeset viewer.