Changeset 68e1023 in mainline
- Timestamp:
- 2012-12-30T19:49:00Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6df4adc4
- Parents:
- 34289ea
- Location:
- uspace/drv/bus/usb/usbmid
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmid/explore.c
r34289ea r68e1023 193 193 usbmid_interface_t *iface = usbmid_interface_from_link(link); 194 194 195 usb_log_info("Creating child for interface %d (%s).\n", 196 iface->interface_no, 197 usb_str_class(iface->interface->interface_class)); 195 usb_log_info("Creating child for interface %d.\n", 196 iface->interface_no); 198 197 199 198 rc = usbmid_spawn_interface_child(dev, iface, -
uspace/drv/bus/usb/usbmid/main.c
r34289ea r68e1023 83 83 usbmid_interface_t *iface = usbmid_interface_from_link(item); 84 84 85 usb_log_info("Removing child for interface %d (%s).\n", 86 iface->interface_no, 87 usb_str_class(iface->interface->interface_class)); 85 usb_log_info("Removing child `%s'.\n", 86 ddf_fun_get_name(iface->fun)); 88 87 89 88 /* Tell the child to go off-line. */ 90 89 int pret = ddf_fun_offline(iface->fun); 91 90 if (pret != EOK) { 92 usb_log_warning("Failed to turn off child for interface" 93 " %d (%s): %s\n", iface->interface_no, 94 usb_str_class(iface->interface->interface_class), 95 str_error(pret)); 91 usb_log_warning("Failed to turn off child `%s': %s\n", 92 ddf_fun_get_name(iface->fun), str_error(pret)); 96 93 ret = pret; 97 94 } … … 100 97 pret = usbmid_interface_destroy(iface); 101 98 if (pret != EOK) { 102 usb_log_error("Failed to destroy child for interface " 103 "%d (%s): %s\n", iface->interface_no, 104 usb_str_class(iface->interface->interface_class), 105 str_error(pret)); 99 usb_log_error("Failed to destroy child `%s': %s\n", 100 ddf_fun_get_name(iface->fun), str_error(pret)); 106 101 ret = pret; 107 102 } … … 139 134 usbmid_interface_t *iface = usbmid_interface_from_link(item); 140 135 141 usb_log_info("Child for interface %d (%s) gone.\n", 142 iface->interface_no, 143 usb_str_class(iface->interface->interface_class)); 136 usb_log_info("Child `%s' is gone.\n", 137 ddf_fun_get_name(iface->fun)); 144 138 145 139 const int pret = usbmid_interface_destroy(iface); 146 140 if (pret != EOK) { 147 usb_log_error("Failed to remove child for interface " 148 "%d (%s): %s\n", 149 iface->interface_no, 150 usb_str_class(iface->interface->interface_class), 151 str_error(pret)); 141 usb_log_error("Failed to remove child `%s': %s\n", 142 ddf_fun_get_name(iface->fun), str_error(pret)); 152 143 ret = pret; 153 144 }
Note:
See TracChangeset
for help on using the changeset viewer.