Changeset 4125b7d in mainline for uspace/drv/ehci-hcd/main.c


Ignore:
Timestamp:
2011-04-18T20:06:55Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84a04dd, bbdf09e
Parents:
5ab4a48
Message:

usb_log_printf() checks for printf correctness

It is surprising how many printf warnings simple check could
produce ;-).

Next time, it won't compile. Bad, huh?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ehci-hcd/main.c

    r5ab4a48 r4125b7d  
    8282            pci_get_my_registers(device, &mem_reg_base, &mem_reg_size, &irq);
    8383        CHECK_RET_RETURN(ret,
    84             "Failed(%d) to get memory addresses:.\n", ret, device->handle);
    85         usb_log_info("Memory mapped regs at 0x%X (size %zu), IRQ %d.\n",
     84            "Failed to get memory addresses for %" PRIun ": %s.\n",
     85            device->handle, str_error(ret));
     86        usb_log_info("Memory mapped regs at 0x%" PRIxn " (size %zu), IRQ %d.\n",
    8687            mem_reg_base, mem_reg_size, irq);
    8788
     
    102103            str_error(ret));
    103104
    104         usb_log_info("Controlling new EHCI device `%s' (handle %llu).\n",
     105        usb_log_info("Controlling new EHCI device `%s' (handle %" PRIun ").\n",
    105106            device->name, device->handle);
    106107
Note: See TracChangeset for help on using the changeset viewer.