Changes in uspace/srv/bd/sata_bd/sata_bd.c [c1694b6b:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/sata_bd/sata_bd.c
rc1694b6b r8d2dd7f2 41 41 #include <devman.h> 42 42 #include <errno.h> 43 #include <str_error.h>44 43 #include <stdio.h> 45 44 #include <str.h> … … 252 251 rc = loc_server_register(NAME); 253 252 if (rc < 0) { 254 printf(NAME ": Unable to register driver : %s.\n", str_error(rc));253 printf(NAME ": Unable to register driver.\n"); 255 254 return rc; 256 255 } … … 258 257 rc = get_sata_disks(); 259 258 if (rc != EOK) { 260 // TODO: log the error261 259 return rc; 262 260 } … … 264 262 rc = loc_category_get_id("disk", &disk_cat, IPC_FLAG_BLOCKING); 265 263 if (rc != EOK) { 266 printf("%s: Failed resolving category 'disk' : %s.\n", NAME, str_error(rc));264 printf("%s: Failed resolving category 'disk'.\n", NAME); 267 265 return rc; 268 266 } … … 273 271 rc = loc_service_register(name, &disk[i].service_id); 274 272 if (rc != EOK) { 275 printf(NAME ": Unable to register device %s : %s\n", name, str_error(rc));273 printf(NAME ": Unable to register device %s.\n", name); 276 274 return rc; 277 275 } … … 279 277 rc = loc_service_add_to_cat(disk[i].service_id, disk_cat); 280 278 if (rc != EOK) { 281 printf("%s: Failed adding %s to category : %s.",282 NAME, disk[i].dev_name , str_error(rc));279 printf("%s: Failed adding %s to category.", 280 NAME, disk[i].dev_name); 283 281 return rc; 284 282 }
Note:
See TracChangeset
for help on using the changeset viewer.