Changeset a1732929 in mainline for uspace/drv/bus/usb/vhc/main.c


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/bus/usb/vhc/main.c

    rc1a966e ra1732929  
    7777        int ret = hcd_ddf_setup_hc(dev, sizeof(vhc_data_t));
    7878        if (ret != EOK) {
    79                 usb_log_error("Failed to init HCD structures: %s.\n",
     79                usb_log_error("Failed to init HCD structures: %s.",
    8080                   str_error(ret));
    8181                return ret;
     
    9090        ret = vhc_control_node(dev, &ctl_fun);
    9191        if (ret != EOK) {
    92                 usb_log_error("Failed to setup control node.\n");
     92                usb_log_error("Failed to setup control node.");
    9393                return ret;
    9494        }
     
    9797        ret = vhc_virtdev_plug_hub(vhc, &vhc->hub, NULL, 0);
    9898        if (ret != EOK) {
    99                 usb_log_error("Failed to plug root hub: %s.\n", str_error(ret));
     99                usb_log_error("Failed to plug root hub: %s.", str_error(ret));
    100100                ddf_fun_destroy(ctl_fun);
    101101                return ret;
     
    108108        ret = hcd_setup_virtual_root_hub(&vhc->base);
    109109        if (ret != EOK) {
    110                 usb_log_error("Failed to init VHC root hub: %s\n",
     110                usb_log_error("Failed to init VHC root hub: %s",
    111111                        str_error(ret));
    112112                // TODO do something here...
Note: See TracChangeset for help on using the changeset viewer.