Author: akhaldi
Date: Sun Mar 17 15:33:47 2013
New Revision: 58543
URL:
http://svn.reactos.org/svn/reactos?rev=58543&view=rev
Log:
[USBOHCI]
* Fix some format specifiers.
Modified:
trunk/reactos/drivers/usb/usbohci/hardware.cpp
trunk/reactos/drivers/usb/usbohci/usb_request.cpp
Modified: trunk/reactos/drivers/usb/usbohci/hardware.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbohci/hardwa…
==============================================================================
--- trunk/reactos/drivers/usb/usbohci/hardware.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbohci/hardware.cpp [iso-8859-1] Sun Mar 17 15:33:47 2013
@@ -553,7 +553,7 @@
// delay is 100 ms
//
Timeout.QuadPart = WaitInMs;
- DPRINT1("Waiting %d milliseconds for controller to transition
state\n", Timeout.LowPart);
+ DPRINT1("Waiting %lu milliseconds for controller to transition
state\n", Timeout.LowPart);
//
// convert to 100 ns units (absolute)
@@ -1133,7 +1133,7 @@
// delay is 100 ms
//
Timeout.QuadPart = 100;
- DPRINT1("Waiting %d milliseconds for port to stabilize after
connection\n", Timeout.LowPart);
+ DPRINT1("Waiting %lu milliseconds for port to stabilize after
connection\n", Timeout.LowPart);
//
// convert to 100 ns units (absolute)
@@ -1204,7 +1204,7 @@
// delay is multiplied by 2 ms
//
Timeout.QuadPart *= 2;
- DPRINT1("Waiting %d milliseconds for port power up\n",
Timeout.LowPart);
+ DPRINT1("Waiting %lu milliseconds for port power up\n",
Timeout.LowPart);
//
// convert to 100 ns units (absolute)
@@ -1472,7 +1472,7 @@
//
// device connected
//
- DPRINT1("New device arrival at Port %d LowSpeed %x\n",
Index, (PortStatus & OHCI_RH_PORTSTATUS_LSDA));
+ DPRINT1("New device arrival at Port %lu LowSpeed %x\n",
Index, (PortStatus & OHCI_RH_PORTSTATUS_LSDA));
//
// enable port
@@ -1509,7 +1509,7 @@
//
// This is a port reset complete interrupt
//
- DPRINT1("Port %d completed reset\n", Index);
+ DPRINT1("Port %lu completed reset\n", Index);
//
// Queue a work item
Modified: trunk/reactos/drivers/usb/usbohci/usb_request.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbohci/usb_re…
==============================================================================
--- trunk/reactos/drivers/usb/usbohci/usb_request.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbohci/usb_request.cpp [iso-8859-1] Sun Mar 17 15:33:47
2013
@@ -1348,7 +1348,7 @@
DPRINT1("EndpointDescriptor %p Addr %x\n", Descriptor,
Descriptor->PhysicalAddress.LowPart);
DPRINT1("EndpointDescriptor HeadPhysicalDescriptor %x HeadLogicalDescriptor
%p\n", Descriptor->HeadPhysicalDescriptor, Descriptor->HeadLogicalDescriptor);
DPRINT1("EndpointDescriptor TailPhysicalDescriptor %x\n",
Descriptor->TailPhysicalDescriptor);
- DPRINT1("EndpointDescriptor NextDescriptor %x\n",
Descriptor->NextDescriptor);
+ DPRINT1("EndpointDescriptor NextDescriptor %p\n",
Descriptor->NextDescriptor);
DPRINT1("EndpointDescriptor NextPhysicalEndpoint %x\n",
Descriptor->NextPhysicalEndpoint);
DPRINT1("EndpointDescriptor Flags %x\n", Descriptor->Flags);
@@ -1356,12 +1356,12 @@
GeneralDescriptor = (POHCI_GENERAL_TD)Descriptor->HeadLogicalDescriptor;
while(GeneralDescriptor)
{
- DPRINT1("Descriptor %d Address %p Addr %x\n", Count, GeneralDescriptor,
GeneralDescriptor->PhysicalAddress);
- DPRINT1("Descriptor %d BufferLogical %p BufferPhysical %x\n", Count,
GeneralDescriptor->BufferLogical, GeneralDescriptor->BufferPhysical);
- DPRINT1("Descriptor %d BufferSize %d\n", Count,
GeneralDescriptor->BufferSize);
- DPRINT1("Descriptor %d LastPhysicalByteAddress %x\n", Count,
GeneralDescriptor->LastPhysicalByteAddress);
- DPRINT1("Descriptor %d Flags %x\n", Count,
GeneralDescriptor->Flags);
- DPRINT1("Descriptor %d NextLogicalDescriptor %p NextPhysicalDescriptor
%x\n", Count, GeneralDescriptor->NextLogicalDescriptor,
GeneralDescriptor->NextPhysicalDescriptor);
+ DPRINT1("Descriptor %lu Address %p Addr %x\n", Count,
GeneralDescriptor, GeneralDescriptor->PhysicalAddress);
+ DPRINT1("Descriptor %lu BufferLogical %p BufferPhysical %x\n", Count,
GeneralDescriptor->BufferLogical, GeneralDescriptor->BufferPhysical);
+ DPRINT1("Descriptor %lu BufferSize %lu\n", Count,
GeneralDescriptor->BufferSize);
+ DPRINT1("Descriptor %lu LastPhysicalByteAddress %x\n", Count,
GeneralDescriptor->LastPhysicalByteAddress);
+ DPRINT1("Descriptor %lu Flags %x\n", Count,
GeneralDescriptor->Flags);
+ DPRINT1("Descriptor %lu NextLogicalDescriptor %p NextPhysicalDescriptor
%x\n", Count, GeneralDescriptor->NextLogicalDescriptor,
GeneralDescriptor->NextPhysicalDescriptor);
Count++;
GeneralDescriptor =
(POHCI_GENERAL_TD)GeneralDescriptor->NextLogicalDescriptor;