Changeset c1694b6b in mainline for uspace/srv/bd/file_bd/file_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/file_bd/file_bd.c
r9eb1ff5 rc1694b6b 48 48 #include <stdint.h> 49 49 #include <errno.h> 50 #include <str_error.h> 50 51 #include <stdbool.h> 51 52 #include <task.h> … … 134 135 rc = loc_service_register(device_name, &service_id); 135 136 if (rc != EOK) { 136 printf("%s: Unable to register device '%s' .\n",137 NAME, device_name );137 printf("%s: Unable to register device '%s': %s.\n", 138 NAME, device_name, str_error(rc)); 138 139 return rc; 139 140 } … … 141 142 rc = loc_category_get_id("disk", &disk_cat, IPC_FLAG_BLOCKING); 142 143 if (rc != EOK) { 143 printf("%s: Failed resolving category 'disk' .\n", NAME);144 printf("%s: Failed resolving category 'disk': %s\n", NAME, str_error(rc)); 144 145 return rc; 145 146 } … … 147 148 rc = loc_service_add_to_cat(service_id, disk_cat); 148 149 if (rc != EOK) { 149 printf("%s: Failed adding %s to category .",150 NAME, device_name );150 printf("%s: Failed adding %s to category: %s", 151 NAME, device_name, str_error(rc)); 151 152 return rc; 152 153 }
Note:
See TracChangeset
for help on using the changeset viewer.