Changeset c1694b6b in mainline for uspace/app/devctl/devctl.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/app/devctl/devctl.c

    r9eb1ff5 rc1694b6b  
    324324        rc = devman_driver_get_handle(drvname, &drvh);
    325325        if (rc != EOK) {
    326                 printf("Failed resolving driver '%s' (%d).\n", drvname, rc);
     326                printf("Failed resolving driver '%s': %s.\n", drvname, str_error(rc));
    327327                return rc;
    328328        }
     
    330330        rc = devman_driver_load(drvh);
    331331        if (rc != EOK) {
    332                 printf("Failed loading driver '%s' (%d).\n", drvname, rc);
     332                printf("Failed loading driver '%s': %s.\n", drvname, str_error(rc));
    333333                return rc;
    334334        }
     
    344344        rc = devman_driver_get_handle(drvname, &drvh);
    345345        if (rc != EOK) {
    346                 printf("Failed resolving driver '%s' (%d).\n", drvname, rc);
     346                printf("Failed resolving driver '%s': %s.\n", drvname, str_error(rc));
    347347                return rc;
    348348        }
     
    350350        rc = devman_driver_unload(drvh);
    351351        if (rc != EOK) {
    352                 printf("Failed unloading driver '%s' (%d).\n", drvname, rc);
     352                printf("Failed unloading driver '%s': %s.\n", drvname, str_error(rc));
    353353                return rc;
    354354        }
Note: See TracChangeset for help on using the changeset viewer.