Ignore:
Timestamp:
2018-01-15T17:04:34Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ff99e8
Parents:
c1a966e
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:32)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:34)
Message:

usb: unified logging

Use logger instead of printf. Logger adds newlines automatically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/usbhid/blink1/blink1.c

    rc1a966e ra1732929  
    6464        usb_blink1_t *blink1_dev = (usb_blink1_t *) ddf_fun_data_get(fun);
    6565        if (blink1_dev == NULL) {
    66                 usb_log_debug("Missing parameters.\n");
     66                usb_log_debug("Missing parameters.");
    6767                return EINVAL;
    6868        }
     
    105105            fun_exposed, HID_BLINK1_FUN_NAME);
    106106        if (fun == NULL) {
    107                 usb_log_error("Could not create DDF function node `%s'.\n",
     107                usb_log_error("Could not create DDF function node `%s'.",
    108108                    HID_BLINK1_FUN_NAME);
    109109                return ENOMEM;
     
    123123        int rc = ddf_fun_bind(fun);
    124124        if (rc != EOK) {
    125                 usb_log_error("Could not bind DDF function `%s': %s.\n",
     125                usb_log_error("Could not bind DDF function `%s': %s.",
    126126                    ddf_fun_get_name(fun), str_error(rc));
    127127                ddf_fun_destroy(fun);
     
    131131        rc = ddf_fun_add_to_category(fun, HID_BLINK1_CATEGORY);
    132132        if (rc != EOK) {
    133                 usb_log_error("Could not add DDF function to category %s: %s.\n",
     133                usb_log_error("Could not add DDF function to category %s: %s.",
    134134                    HID_BLINK1_CATEGORY, str_error(rc));
    135135               
Note: See TracChangeset for help on using the changeset viewer.