Changeset dd8ab1c in mainline for uspace/drv/hid/ps2mouse/ps2mouse.c
- Timestamp:
- 2017-12-10T21:08:11Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 68e5406
- Parents:
- 1afa94d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/ps2mouse/ps2mouse.c
r1afa94d rdd8ab1c 36 36 #include <stdbool.h> 37 37 #include <errno.h> 38 #include <str_error.h> 38 39 #include <ddf/log.h> 39 40 #include <io/keycode.h> … … 78 79 const int rc = chardev_read((mouse)->chardev, &data, 1, &nread); \ 79 80 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));\ 81 82 return rc; \ 82 83 } \ … … 95 96 const int rc = chardev_write((mouse)->chardev, &data, 1, &nwr); \ 96 97 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)); \ 98 99 return rc; \ 99 100 } \
Note:
See TracChangeset
for help on using the changeset viewer.