Changeset c1694b6b in mainline for uspace/srv/bd/sata_bd/sata_bd.c
- Timestamp:
- 2017-12-08T21:03:35Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f77c1c9
- Parents:
- 9eb1ff5
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 18:20:13)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:03:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/sata_bd/sata_bd.c
r9eb1ff5 rc1694b6b 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> … … 251 252 rc = loc_server_register(NAME); 252 253 if (rc < 0) { 253 printf(NAME ": Unable to register driver .\n");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.