Changeset dd8ab1c in mainline for uspace/drv/hid/ps2mouse/ps2mouse.c


Ignore:
Timestamp:
2017-12-10T21:08:11Z (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:
68e5406
Parents:
1afa94d
Message:

More str_error() additions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/ps2mouse/ps2mouse.c

    r1afa94d rdd8ab1c  
    3636#include <stdbool.h>
    3737#include <errno.h>
     38#include <str_error.h>
    3839#include <ddf/log.h>
    3940#include <io/keycode.h>
     
    7879        const int rc = chardev_read((mouse)->chardev, &data, 1, &nread); \
    7980        if (rc != EOK) { \
    80                 ddf_msg(LVL_ERROR, "Failed reading byte: %d", rc);\
     81                ddf_msg(LVL_ERROR, "Failed reading byte: %s", str_error_name(rc));\
    8182                return rc; \
    8283        } \
     
    9596        const int rc = chardev_write((mouse)->chardev, &data, 1, &nwr); \
    9697        if (rc != EOK) { \
    97                 ddf_msg(LVL_ERROR, "Failed writing byte: %d", rc); \
     98                ddf_msg(LVL_ERROR, "Failed writing byte: %s", str_error_name(rc)); \
    9899                return rc; \
    99100        } \
Note: See TracChangeset for help on using the changeset viewer.