Changeset cf2ccd4 in mainline for uspace/drv/usbhub/usbhub.c


Ignore:
Timestamp:
2011-04-22T09:26:50Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7304663
Parents:
1553cbf (diff), 1775ebc (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:

new report structure and usbhid merge

File:
1 edited

Legend:

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

    r1553cbf rcf2ccd4  
    264264                                    port+1, USB_HUB_FEATURE_PORT_POWER);
    265265                                if (opResult != EOK) {
    266                                         usb_log_error("cannot power on port %d;  %d\n",
    267                                             port+1, opResult);
     266                                        usb_log_error("cannot power on port %zu: %s.\n",
     267                                            port+1, str_error(opResult));
    268268                                }
    269269                        }
     
    273273                            USB_HUB_FEATURE_C_HUB_LOCAL_POWER);
    274274                        if (opResult != EOK) {
    275                                 usb_log_error("cannot power hub;  %d\n",
    276                                   opResult);
     275                                usb_log_error("cannot power hub: %s\n",
     276                                    str_error(opResult));
    277277                        }
    278278                }
     
    362362        }
    363363
    364         usb_log_info("Controlling hub `%s' (%d ports).\n",
     364        usb_log_info("Controlling hub `%s' (%zu ports).\n",
    365365            hub_info->usb_device->ddf_dev->name, hub_info->port_count);
    366366        return EOK;
     
    430430                            port, USB_HUB_FEATURE_PORT_POWER);
    431431                        if (opResult != EOK) {
    432                                 usb_log_error("cannot power on port %d;  %d\n",
    433                                     port, opResult);
     432                                usb_log_error("Cannot power on port %zu: %s.\n",
     433                                    port, str_error(opResult));
    434434                        }
    435435                }
Note: See TracChangeset for help on using the changeset viewer.