Changeset c1694b6b in mainline for uspace/srv/bd/file_bd/file_bd.c


Ignore:
Timestamp:
2017-12-08T21:03:35Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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)
Message:

Add str_error() in numerous places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/file_bd/file_bd.c

    r9eb1ff5 rc1694b6b  
    4848#include <stdint.h>
    4949#include <errno.h>
     50#include <str_error.h>
    5051#include <stdbool.h>
    5152#include <task.h>
     
    134135        rc = loc_service_register(device_name, &service_id);
    135136        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));
    138139                return rc;
    139140        }
     
    141142        rc = loc_category_get_id("disk", &disk_cat, IPC_FLAG_BLOCKING);
    142143        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));
    144145                return rc;
    145146        }
     
    147148        rc = loc_service_add_to_cat(service_id, disk_cat);
    148149        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));
    151152                return rc;
    152153        }
Note: See TracChangeset for help on using the changeset viewer.