Changeset a1732929 in mainline for uspace/drv/bus/usb/usbmid/main.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/main.c
rc1a966e ra1732929 51 51 static int usbmid_device_add(usb_device_t *dev) 52 52 { 53 usb_log_info("Taking care of new MID `%s'. \n", usb_device_get_name(dev));53 usb_log_info("Taking care of new MID `%s'.", usb_device_get_name(dev)); 54 54 55 55 return usbmid_explore_device(dev); … … 68 68 const int pret = usbmid_interface_destroy(iface); 69 69 if (pret != EOK) { 70 usb_log_error("Failed to remove child `%s': %s \n",70 usb_log_error("Failed to remove child `%s': %s", 71 71 ddf_fun_get_name(iface->fun), str_error(pret)); 72 72 ret = pret; … … 91 91 int ret = ddf_fun_unbind(usb_mid->ctl_fun); 92 92 if (ret != EOK) { 93 usb_log_error("Failed to unbind USB MID ctl function: %s. \n",93 usb_log_error("Failed to unbind USB MID ctl function: %s.", 94 94 str_error(ret)); 95 95 return ret; … … 99 99 /* Remove all children */ 100 100 list_foreach(usb_mid->interface_list, link, usbmid_interface_t, iface) { 101 usb_log_info("Removing child `%s'. \n",101 usb_log_info("Removing child `%s'.", 102 102 ddf_fun_get_name(iface->fun)); 103 103 … … 105 105 int pret = ddf_fun_offline(iface->fun); 106 106 if (pret != EOK) { 107 usb_log_warning("Failed to turn off child `%s': %s \n",107 usb_log_warning("Failed to turn off child `%s': %s", 108 108 ddf_fun_get_name(iface->fun), str_error(pret)); 109 109 ret = pret; … … 125 125 assert(usb_mid); 126 126 127 usb_log_info("USB MID gone: `%s'. \n", usb_device_get_name(dev));127 usb_log_info("USB MID gone: `%s'.", usb_device_get_name(dev)); 128 128 129 129 /* Remove ctl function */ 130 130 int ret = ddf_fun_unbind(usb_mid->ctl_fun); 131 131 if (ret != EOK) { 132 usb_log_error("Failed to unbind USB MID ctl function: %s. \n",132 usb_log_error("Failed to unbind USB MID ctl function: %s.", 133 133 str_error(ret)); 134 134 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.