Changeset c4fb5ecd in mainline for uspace/drv/ohci/hc.c


Ignore:
Timestamp:
2011-06-18T19:18:41Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
497b6f31
Parents:
84eb7432
Message:

Less logging in USB host controller drivers

Many of the debug messages were degraded to debug2 level or
completely removed. Also added formatting string for unified
dump of USB transfer batches.

Warnings in EHCI stub use debug level now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.c

    r84eb7432 rc4fb5ecd  
    6565            device_keeper_get_free_address(&instance->manager, USB_SPEED_FULL);
    6666        if (hub_address <= 0) {
    67                 usb_log_error("Failed(%d) to get OHCI root hub address.\n",
    68                     hub_address);
     67                usb_log_error("Failed to get OHCI root hub address: %s\n",
     68                    str_error(hub_address));
    6969                return hub_address;
    7070        }
     
    445445        /* HC is in reset (hw startup) => no other driver
    446446         * maintain reset for at least the time specified in USB spec (50 ms)*/
    447         usb_log_info("HC found in reset.\n");
     447        usb_log_debug("Host controller found in reset state.\n");
    448448        async_usleep(50000);
    449449}
     
    516516
    517517        instance->registers->control &= (C_HCFS_OPERATIONAL << C_HCFS_SHIFT);
    518         usb_log_info("OHCI HC up and running(%x).\n",
     518        usb_log_debug("OHCI HC up and running (ctl_reg=0x%x).\n",
    519519            instance->registers->control);
    520520}
Note: See TracChangeset for help on using the changeset viewer.