Changeset a1732929 in mainline for uspace/drv/bus/usb/usbmid/explore.c
- Timestamp:
- 2018-01-15T17:04:34Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ff99e8
- Parents:
- c1a966e
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:32)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmid/explore.c
rc1a966e ra1732929 106 106 107 107 108 usb_log_info("Creating child for interface %d (%s). \n",108 usb_log_info("Creating child for interface %d (%s).", 109 109 interface->interface_number, 110 110 usb_str_class(interface->interface_class)); … … 144 144 dev_class, usb_str_class(dev_class), 145 145 USB_CLASS_USE_INTERFACE); 146 usb_log_error("Not a multi-interface device, refusing. \n");146 usb_log_error("Not a multi-interface device, refusing."); 147 147 return ENOTSUP; 148 148 } … … 160 160 config_descriptor->configuration_number); 161 161 if (rc != EOK) { 162 usb_log_error("Failed to set device configuration: %s. \n",162 usb_log_error("Failed to set device configuration: %s.", 163 163 str_error(rc)); 164 164 return rc; … … 168 168 usb_mid_t *usb_mid = usb_device_data_alloc(dev, sizeof(usb_mid_t)); 169 169 if (!usb_mid) { 170 usb_log_error("Failed to create USB MID structure. \n");170 usb_log_error("Failed to create USB MID structure."); 171 171 return ENOMEM; 172 172 } … … 175 175 usb_mid->ctl_fun = usb_device_ddf_fun_create(dev, fun_exposed, "ctl"); 176 176 if (usb_mid->ctl_fun == NULL) { 177 usb_log_error("Failed to create control function. \n");177 usb_log_error("Failed to create control function."); 178 178 return ENOMEM; 179 179 } … … 182 182 rc = ddf_fun_bind(usb_mid->ctl_fun); 183 183 if (rc != EOK) { 184 usb_log_error("Failed to bind control function: %s. \n",184 usb_log_error("Failed to bind control function: %s.", 185 185 str_error(rc)); 186 186 ddf_fun_destroy(usb_mid->ctl_fun);
Note:
See TracChangeset
for help on using the changeset viewer.