Changeset ba7f671 in mainline for uspace/lib/usb/src/hcdhubd.c


Ignore:
Timestamp:
2010-11-28T21:37:55Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1f43c8f
Parents:
fb1dca09
Message:

Code clean-up

Unified style for adding child devices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hcdhubd.c

    rfb1dca09 rba7f671  
    4040#include <bool.h>
    4141#include <errno.h>
     42#include <str_error.h>
    4243#include <usb/classes/hub.h>
    4344
     
    150151        match_id->id = child_info->match_id;
    151152        match_id->score = 10;
    152         printf("adding child device with match \"%s\"\n", match_id->id);
    153153        add_match_id(&child->match_ids, match_id);
    154154
    155155        rc = child_device_register(child, child_info->parent);
     156        printf("%s: adding child device with match \"%s\" (%s)\n",
     157            hc_driver->name, match_id->id, str_error(rc));
    156158        if (rc != EOK) {
    157159                goto failure;
Note: See TracChangeset for help on using the changeset viewer.