Changeset 93fb170c in mainline for uspace/drv/usbhub/main.c


Ignore:
Timestamp:
2011-01-08T18:51: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:
15be932
Parents:
8f748215 (diff), a523af4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from main branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/main.c

    r8f748215 r93fb170c  
    3232
    3333#include <usb/usbdrv.h>
     34
    3435#include "usbhub.h"
    3536#include "usbhub_private.h"
     
    3738
    3839usb_general_list_t usb_hub_list;
     40futex_t usb_hub_list_lock;
    3941
    4042static driver_ops_t hub_driver_ops = {
     
    5860int main(int argc, char *argv[])
    5961{
     62        usb_dprintf_enable(NAME,1);
     63        futex_initialize(&usb_hub_list_lock, 0);
    6064        usb_lst_init(&usb_hub_list);
     65        futex_up(&usb_hub_list_lock);
    6166        fid_t fid = fibril_create(usb_hub_control_loop, NULL);
    6267        if (fid == 0) {
    63                 printf("%s: failed to start fibril for HUB devices\n", NAME);
     68                dprintf(1, "failed to start fibril for HUB devices");
     69                //printf("%s: failed to start fibril for HUB devices\n", NAME);
    6470                return ENOMEM;
    6571        }
Note: See TracChangeset for help on using the changeset viewer.