Changeset 44b1674 in mainline for uspace/drv/usbhub/usbhub.c


Ignore:
Timestamp:
2011-04-18T21:48:55Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9014dcd
Parents:
618f9ed (diff), 84a04dd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge form usb/development

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub.c

    r618f9ed r44b1674  
    260260                                    port+1, USB_HUB_FEATURE_PORT_POWER);
    261261                                if (opResult != EOK) {
    262                                         usb_log_error("cannot power on port %d;  %d\n",
    263                                             port+1, opResult);
     262                                        usb_log_error("cannot power on port %zu: %s.\n",
     263                                            port+1, str_error(opResult));
    264264                                }
    265265                        }
     
    269269                            USB_HUB_FEATURE_C_HUB_LOCAL_POWER);
    270270                        if (opResult != EOK) {
    271                                 usb_log_error("cannot power hub;  %d\n",
    272                                   opResult);
     271                                usb_log_error("cannot power hub: %s\n",
     272                                    str_error(opResult));
    273273                        }
    274274                }
     
    356356        }
    357357
    358         usb_log_info("Controlling hub `%s' (%d ports).\n",
     358        usb_log_info("Controlling hub `%s' (%zu ports).\n",
    359359            hub_info->usb_device->ddf_dev->name, hub_info->port_count);
    360360        return EOK;
     
    424424                            port, USB_HUB_FEATURE_PORT_POWER);
    425425                        if (opResult != EOK) {
    426                                 usb_log_error("cannot power on port %d;  %d\n",
    427                                     port, opResult);
     426                                usb_log_error("Cannot power on port %zu: %s.\n",
     427                                    port, str_error(opResult));
    428428                        }
    429429                }
Note: See TracChangeset for help on using the changeset viewer.