Changeset a1732929 in mainline for uspace/lib/usbhost/src/ddf_helpers.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/lib/usbhost/src/ddf_helpers.c
rc1a966e ra1732929 133 133 assert(dev); 134 134 135 usb_log_debug("Device %d requested default address at %s speed \n",135 usb_log_debug("Device %d requested default address at %s speed", 136 136 dev->address, usb_str_speed(speed)); 137 137 return bus_reserve_default_address(hcd->bus, speed); … … 152 152 assert(dev); 153 153 154 usb_log_debug("Device %d released default address \n", dev->address);154 usb_log_debug("Device %d released default address", dev->address); 155 155 bus_release_default_address(hcd->bus); 156 156 … … 173 173 assert(hub); 174 174 175 usb_log_debug("Hub %d reported a new USB device on port: %u \n",175 usb_log_debug("Hub %d reported a new USB device on port: %u", 176 176 hub->address, port); 177 177 return hcd_ddf_new_device(hcd, hc, hub, port); … … 185 185 assert(ddf_dev); 186 186 assert(dev); 187 usb_log_debug("Hub `%s' reported removal of device on port %u \n",187 usb_log_debug("Hub `%s' reported removal of device on port %u", 188 188 ddf_fun_get_name(fun), port); 189 189 return hcd_ddf_remove_device(ddf_dev, dev, port); … … 535 535 hc_device_t *instance = ddf_dev_data_alloc(device, size); 536 536 if (instance == NULL) { 537 usb_log_error("Failed to allocate HCD ddf structure. \n");537 usb_log_error("Failed to allocate HCD ddf structure."); 538 538 return ENOMEM; 539 539 } … … 543 543 instance->ctl_fun = ddf_fun_create(device, fun_exposed, "ctl"); 544 544 if (!instance->ctl_fun) { 545 usb_log_error("Failed to create HCD ddf fun. \n");545 usb_log_error("Failed to create HCD ddf fun."); 546 546 goto err_destroy_fun; 547 547 } … … 549 549 ret = ddf_fun_bind(instance->ctl_fun); 550 550 if (ret != EOK) { 551 usb_log_error("Failed to bind ctl_fun: %s. \n", str_error(ret));551 usb_log_error("Failed to bind ctl_fun: %s.", str_error(ret)); 552 552 goto err_destroy_fun; 553 553 } … … 555 555 ret = ddf_fun_add_to_category(instance->ctl_fun, USB_HC_CATEGORY); 556 556 if (ret != EOK) { 557 usb_log_error("Failed to add fun to category: %s. \n",557 usb_log_error("Failed to add fun to category: %s.", 558 558 str_error(ret)); 559 559 ddf_fun_unbind(instance->ctl_fun);
Note:
See TracChangeset
for help on using the changeset viewer.