Ignore:
File:
1 edited

Legend:

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

    r4125b7d r46e078a  
    8383void usb_hub_process_interrupt(usb_hub_info_t * hub,
    8484        uint16_t port) {
    85         usb_log_debug("interrupt at port %zu\n", (size_t) port);
     85        usb_log_debug("interrupt at port %d\n", port);
    8686        //determine type of change
    8787        //usb_pipe_t *pipe = hub->control_pipe;
     
    9393        if (opResult != EOK) {
    9494                usb_log_error("Failed to get port %zu status: %s.\n",
    95                     (size_t) port, str_error(opResult));
     95                    port, str_error(opResult));
    9696                return;
    9797        }
     
    100100                bool device_connected = usb_port_is_status(status,
    101101                    USB_HUB_FEATURE_PORT_CONNECTION);
    102                 usb_log_debug("Connection change on port %zu: %s.\n",
    103                     (size_t) port,
     102                usb_log_debug("Connection change on port %zu: %s.\n", port,
    104103                    device_connected ? "device attached" : "device removed");
    105104
     
    110109                                usb_log_error(
    111110                                    "Cannot handle change on port %zu: %s.\n",
    112                                     (size_t) port, str_error(opResult));
     111                                    str_error(opResult));
    113112                        }
    114113                } else {
     
    211210static void usb_hub_port_reset_completed(usb_hub_info_t * hub,
    212211        uint16_t port, uint32_t status){
    213         usb_log_debug("Port %zu reset complete.\n", (size_t) port);
     212        usb_log_debug("Port %zu reset complete.\n", port);
    214213        if (usb_port_is_status(status, USB_HUB_FEATURE_PORT_ENABLE)) {
    215214                /* Finalize device adding. */
     
    223222                usb_log_warning(
    224223                    "Port %zu reset complete but port not enabled.\n",
    225                     (size_t) port);
     224                    port);
    226225        }
    227226}
Note: See TracChangeset for help on using the changeset viewer.