Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9d170a1 in mainline


Ignore:
Timestamp:
2018-01-10T21:56:37Z (4 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master
Children:
1b78beae
Parents:
a4eb520f
Message:

usbhid: better gone handling, increased log level, moved around messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/usbhid/main.c

    ra4eb520f r9d170a1  
    131131        assert(hid_dev);
    132132
    133         usb_log_debug2("%s will be removed, setting remove flag.\n", usb_device_get_name(dev));
     133        usb_log_info("%s will be removed, setting remove flag.\n", usb_device_get_name(dev));
    134134        usb_hid_prepare_deinit(hid_dev);
    135135
     
    148148        usb_hid_dev_t *hid_dev = usb_device_data_get(dev);
    149149        assert(hid_dev);
     150
     151        usb_log_info("%s endpoints unregistered, joining polling fibril.\n", usb_device_get_name(dev));
    150152
    151153        /* Join polling fibril. */
     
    157159        /* Clean up. */
    158160        usb_hid_deinit(hid_dev);
    159         usb_log_debug2("%s destruction complete.\n", usb_device_get_name(dev));
     161        usb_log_info("%s destruction complete.\n", usb_device_get_name(dev));
    160162
    161163        return EOK;
     
    173175        usb_hid_dev_t *hid_dev = usb_device_data_get(dev);
    174176        assert(hid_dev);
     177
     178        usb_log_debug2("Device %s gone.\n", usb_device_get_name(dev));
     179        usb_hid_prepare_deinit(hid_dev);
     180
    175181        unsigned tries = 100;
    176182        /* Wait for fail. */
     
    185191        usb_hid_deinit(hid_dev);
    186192        usb_log_debug2("%s destruction complete.\n", usb_device_get_name(dev));
     193
    187194        return EOK;
    188195}
Note: See TracChangeset for help on using the changeset viewer.