Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/devman.c

    r7e752b2 r0d6915f  
    643643       
    644644        /* Send the device to the driver. */
    645         aid_t req = async_send_1(phone, DRIVER_ADD_DEVICE, node->handle,
    646             &answer);
     645        devman_handle_t parent_handle;
     646        if (node->parent) {
     647                parent_handle = node->parent->handle;
     648        } else {
     649                parent_handle = 0;
     650        }
     651        aid_t req = async_send_2(phone, DRIVER_ADD_DEVICE, node->handle,
     652            parent_handle, &answer);
    647653       
    648654        /* Send the device's name to the driver. */
     
    10141020       
    10151021        size_t idx = get_new_class_dev_idx(cl);
    1016         asprintf(&dev_name, "%s%zu", base_name, idx);
     1022        asprintf(&dev_name, "%s%d", base_name, idx);
    10171023       
    10181024        return dev_name;
Note: See TracChangeset for help on using the changeset viewer.