Changeset 1aba480 in mainline for uspace/app/mkbd/main.c


Ignore:
Timestamp:
2011-05-30T18:48:28Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
19e0560e
Parents:
f3f9733 (diff), 8c74d15 (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:

Changes from development (mostly fixes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkbd/main.c

    rf3f9733 r1aba480  
    213213       
    214214        char *devpath = argv[1];
    215         //const char *devpath = "/hw/pci0/00:06.0/ohci-rh/usb00_a2/HID1/hid";
    216        
    217         int rc;
    218215       
    219216        devman_handle_t dev_handle = 0;
    220         rc = devman_device_get_handle(devpath, &dev_handle, 0);
    221         if (rc != EOK) {
    222                 printf("Failed to get handle from devman: %s.\n",
     217       
     218        int rc = usb_resolve_device_handle(devpath, NULL, NULL, &dev_handle);
     219        if (rc != EOK) {
     220                printf("Device not found or not of USB kind: %s.\n",
    223221                    str_error(rc));
    224222                return rc;
Note: See TracChangeset for help on using the changeset viewer.