Changeset 68e1023 in mainline


Ignore:
Timestamp:
2012-12-30T19:49:00Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6df4adc4
Parents:
34289ea
Message:

usbmid: Use function name in debug messages.

Location:
uspace/drv/bus/usb/usbmid
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/explore.c

    r34289ea r68e1023  
    193193                usbmid_interface_t *iface = usbmid_interface_from_link(link);
    194194
    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);
    198197
    199198                rc = usbmid_spawn_interface_child(dev, iface,
  • uspace/drv/bus/usb/usbmid/main.c

    r34289ea r68e1023  
    8383                usbmid_interface_t *iface = usbmid_interface_from_link(item);
    8484
    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));
    8887
    8988                /* Tell the child to go off-line. */
    9089                int pret = ddf_fun_offline(iface->fun);
    9190                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));
    9693                        ret = pret;
    9794                }
     
    10097                pret = usbmid_interface_destroy(iface);
    10198                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));
    106101                        ret = pret;
    107102                }
     
    139134                usbmid_interface_t *iface = usbmid_interface_from_link(item);
    140135
    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));
    144138
    145139                const int pret = usbmid_interface_destroy(iface);
    146140                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));
    152143                        ret = pret;
    153144                }
Note: See TracChangeset for help on using the changeset viewer.