Changeset 84a04dd in mainline for uspace/drv/usbhub/ports.c


Ignore:
Timestamp:
2011-04-18T20:21:58Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
44b1674, c7d19d84, da1dd48, e3f1987
Parents:
8595577b (diff), 4125b7d (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:

C-style, more IPC hiding (#196, #187)

Removed obsoleted usb_pipe_start_session() and
usb_pipe_end_session().

Printf-like functions produces warning with bad modifiers.

usb_pipe_start_long_transfer() is of type void to save-up checks
that would rarely fail (failure is received upon trying to communicate
over such pipe).

File:
1 edited

Legend:

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

    r8595577b r84a04dd  
    8383void usb_hub_process_interrupt(usb_hub_info_t * hub,
    8484        uint16_t port) {
    85         usb_log_debug("interrupt at port %d\n", port);
     85        usb_log_debug("interrupt at port %zu\n", (size_t) 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                     port, str_error(opResult));
     95                    (size_t) 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", port,
     102                usb_log_debug("Connection change on port %zu: %s.\n",
     103                    (size_t) port,
    103104                    device_connected ? "device attached" : "device removed");
    104105
     
    109110                                usb_log_error(
    110111                                    "Cannot handle change on port %zu: %s.\n",
    111                                     str_error(opResult));
     112                                    (size_t) port, str_error(opResult));
    112113                        }
    113114                } else {
     
    210211static void usb_hub_port_reset_completed(usb_hub_info_t * hub,
    211212        uint16_t port, uint32_t status){
    212         usb_log_debug("Port %zu reset complete.\n", port);
     213        usb_log_debug("Port %zu reset complete.\n", (size_t) port);
    213214        if (usb_port_is_status(status, USB_HUB_FEATURE_PORT_ENABLE)) {
    214215                /* Finalize device adding. */
     
    222223                usb_log_warning(
    223224                    "Port %zu reset complete but port not enabled.\n",
    224                     port);
     225                    (size_t) port);
    225226        }
    226227}
Note: See TracChangeset for help on using the changeset viewer.