Changeset 215b001 in mainline


Ignore:
Timestamp:
2011-03-21T17:31:00Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fbefd0e
Parents:
625f1ba
Message:

Unified default log level of all USB drivers

Location:
uspace
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ehci-hcd/main.c

    r625f1ba r215b001  
    119119int main(int argc, char *argv[])
    120120{
    121         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     121        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    122122        return ddf_driver_main(&ehci_driver);
    123123}
  • uspace/drv/ohci/main.c

    r625f1ba r215b001  
    199199int main(int argc, char *argv[])
    200200{
    201         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     201        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    202202        sleep(5);
    203203        return ddf_driver_main(&ohci_driver);
  • uspace/drv/uhci-hcd/main.c

    r625f1ba r215b001  
    9090{
    9191        sleep(3); /* TODO: remove in final version */
    92         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     92        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    9393
    9494        return ddf_driver_main(&uhci_driver);
  • uspace/drv/uhci-rhd/main.c

    r625f1ba r215b001  
    129129int main(int argc, char *argv[])
    130130{
    131         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     131        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    132132        return ddf_driver_main(&uhci_rh_driver);
    133133}
  • uspace/drv/usbflbk/main.c

    r625f1ba r215b001  
    8686int main(int argc, char *argv[])
    8787{
    88         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     88        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    8989
    9090        return usb_driver_main(&usbfallback_driver);
  • uspace/drv/usbhid/main.c

    r625f1ba r215b001  
    8989int main(int argc, char *argv[])
    9090{
    91         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     91        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    9292        return ddf_driver_main(&kbd_driver);
    9393}
  • uspace/drv/usbhub/main.c

    r625f1ba r215b001  
    7676        printf(NAME ": HelenOS USB hub driver.\n");
    7777
    78         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     78        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    7979       
    8080        return usb_driver_main(&usb_hub_driver);
  • uspace/drv/usbmid/main.c

    r625f1ba r215b001  
    106106        printf(NAME ": USB multi interface device driver.\n");
    107107
    108         usb_log_enable(USB_LOG_LEVEL_INFO, NAME);
     108        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    109109        return ddf_driver_main(&mid_driver);
    110110}
  • uspace/drv/usbmouse/main.c

    r625f1ba r215b001  
    9090int main(int argc, char *argv[])
    9191{
    92         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     92        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    9393
    9494        return usb_driver_main(&mouse_driver);
  • uspace/drv/vhc/hcd.c

    r625f1ba r215b001  
    122122        //sleep(5);
    123123
    124         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     124        usb_log_enable(USB_LOG_LEVEL_DEFAULT, NAME);
    125125
    126126        printf(NAME ": virtual USB host controller driver.\n");
  • uspace/lib/usb/include/usb/debug.h

    r625f1ba r215b001  
    7979} usb_log_level_t;
    8080
     81/** Default log level. */
     82#define USB_LOG_LEVEL_DEFAULT USB_LOG_LEVEL_DEBUG
     83
    8184
    8285void usb_log_enable(usb_log_level_t, const char *);
Note: See TracChangeset for help on using the changeset viewer.