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