Changeset 9b56a8dd in mainline for uspace/drv/char/ps2mouse


Ignore:
Timestamp:
2011-12-26T19:53:31Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4005e37a
Parents:
b39eb79
Message:

i8042, ps2mouse, xtkbd:Drop newlines at the end of ddf_msg messages.

Location:
uspace/drv/char/ps2mouse
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/ps2mouse/main.c

    rb39eb79 r9b56a8dd  
    9090        ps2_mouse_t *mouse = ddf_dev_data_alloc(device, sizeof(ps2_mouse_t));
    9191        int ret = (mouse == NULL) ? ENOMEM : EOK;
    92         CHECK_RET_RETURN(ret, "Failed to allocate mouse driver instance.\n");
     92        CHECK_RET_RETURN(ret, "Failed to allocate mouse driver instance.");
    9393
    9494        ret = ps2_mouse_init(mouse, device);
    9595        CHECK_RET_RETURN(ret,
    96             "Failed to initialize mouse driver: %s.\n", str_error(ret));
     96            "Failed to initialize mouse driver: %s.", str_error(ret));
    9797
    98         ddf_msg(LVL_NOTE, "Controlling '%s' (%" PRIun ").\n",
     98        ddf_msg(LVL_NOTE, "Controlling '%s' (%" PRIun ").",
    9999            device->name, device->handle);
    100100        return EOK;
  • uspace/drv/char/ps2mouse/ps2mouse.c

    rb39eb79 r9b56a8dd  
    109109        ssize_t size = char_dev_write(mouse->parent_sess, &report, 1);
    110110        if (size != 1) {
    111                 ddf_msg(LVL_ERROR, "Failed to write INIT.\n");
     111                ddf_msg(LVL_ERROR, "Failed to write INIT.");
    112112                async_hangup(mouse->parent_sess);
    113113                ddf_fun_unbind(mouse->mouse_fun);
     
    119119        size = char_dev_read(mouse->parent_sess, &report, 1);
    120120        if (size != 1 || report != PS2_MOUSE_ACK) {
    121                 ddf_msg(LVL_ERROR, "MOUSE FAILED TO ACK %hhx.\n", report);
     121                ddf_msg(LVL_ERROR, "MOUSE FAILED TO ACK %hhx.", report);
    122122                async_hangup(mouse->parent_sess);
    123123                ddf_fun_unbind(mouse->mouse_fun);
     
    190190{
    191191        if (fun == NULL || fun->driver_data == NULL) {
    192                 ddf_msg(LVL_ERROR, "%s: Missing parameter.\n", __FUNCTION__);
     192                ddf_msg(LVL_ERROR, "%s: Missing parameter.", __FUNCTION__);
    193193                async_answer_0(icallid, EINVAL);
    194194                return;
     
    222222        }
    223223        default:
    224                 ddf_msg(LVL_ERROR, "Unknown method: %d.\n", (int)method);
     224                ddf_msg(LVL_ERROR, "Unknown method: %d.", (int)method);
    225225                async_answer_0(icallid, EINVAL);
    226226                break;
Note: See TracChangeset for help on using the changeset viewer.