Changeset 81c0854f in mainline for uspace/drv/usbhub/main.c


Ignore:
Timestamp:
2011-01-28T12:41:33Z (13 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba5ab09
Parents:
c2020f7 (diff), ea6a824 (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 usb/development

File:
1 edited

Legend:

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

    rc2020f7 r81c0854f  
    2525 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27 */
     28
     29/** @addtogroup drvusbhub
     30 * @{
    2731 */
    2832
     
    6064int main(int argc, char *argv[])
    6165{
    62         usb_dprintf_enable(NAME,1);
     66        usb_dprintf_enable(NAME, 0);
     67
    6368        futex_initialize(&usb_hub_list_lock, 0);
    6469        usb_lst_init(&usb_hub_list);
    6570        futex_up(&usb_hub_list_lock);
     71
    6672        fid_t fid = fibril_create(usb_hub_control_loop, NULL);
    6773        if (fid == 0) {
    68                 dprintf(1, "failed to start fibril for HUB devices");
    69                 //printf("%s: failed to start fibril for HUB devices\n", NAME);
     74                fprintf(stderr, NAME ": failed to start monitoring fibril," \
     75                    " driver aborting.\n");
    7076                return ENOMEM;
    7177        }
     
    7480        return driver_main(&hub_driver);
    7581}
     82
     83/**
     84 * @}
     85 */
     86
Note: See TracChangeset for help on using the changeset viewer.