Changeset 4abc304 in mainline for uspace/drv/uhci-hcd/root_hub.c


Ignore:
Timestamp:
2011-02-28T11:55:36Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dced52a
Parents:
299d53e
Message:

Debug output refactored

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/root_hub.c

    r299d53e r4abc304  
    3434#include <assert.h>
    3535#include <errno.h>
     36#include <str_error.h>
    3637#include <stdio.h>
    3738#include <ops/hw_res.h>
     
    118119{
    119120        assert(fun);
     121        assert(hc);
    120122        int ret;
    121123
     
    136138        ret = ddf_fun_add_match_id(hub, match_str, 100);
    137139        if (ret != EOK) {
    138                 usb_log_error("Failed to add root hub match id.\n");
     140                usb_log_error("Failed(%d) to add root hub match id: %s\n",
     141                    ret, str_error(ret));
    139142                ddf_fun_destroy(hub);
    140                 return ENOMEM;
     143                return ret;
    141144        }
    142145
Note: See TracChangeset for help on using the changeset viewer.