Changeset 84a04dd in mainline for uspace/drv/uhci-rhd/main.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/uhci-rhd/main.c

    r8595577b r84a04dd  
    11/*
    2  * Copyright (c) 2011 Vojtech Horky, Jan Vesely
     2 * Copyright (c) 2011 Jan Vesely
    33 * All rights reserved.
    44 *
     
    8484                return EINVAL;
    8585
    86         usb_log_debug2("%s called device %d\n", __FUNCTION__, device->handle);
     86        usb_log_debug2("uhci_rh_add_device(handle=%" PRIun ")\n",
     87            device->handle);
    8788
    8889        uintptr_t io_regs = 0;
     
    101102        ret = hc_get_my_registers(device, &io_regs, &io_size);
    102103        CHECK_RET_FREE_RH_RETURN(ret,
    103             "Failed(%d) to get registers from HC: %s.\n", ret, str_error(ret));
    104         usb_log_debug("I/O regs at %#x (size %zu).\n", io_regs, io_size);
     104            "Failed to get registers from HC: %s.\n", str_error(ret));
     105        usb_log_debug("I/O regs at %p (size %zuB).\n",
     106            (void *) io_regs, io_size);
    105107
    106108        rh = malloc(sizeof(uhci_root_hub_t));
     
    115117
    116118        device->driver_data = rh;
    117         usb_log_info("Controlling root hub '%s' (%llu).\n",
     119        usb_log_info("Controlling root hub '%s' (%" PRIun ").\n",
    118120            device->name, device->handle);
    119121        return EOK;
Note: See TracChangeset for help on using the changeset viewer.