- Fix some broken stuff involving DPRINT. Thought I had tested this, sorry for build...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 11 Sep 2015 20:42:49 +0000 (20:42 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Fri, 11 Sep 2015 20:42:49 +0000 (20:42 +0000)
svn path=/trunk/; revision=69188

reactos/drivers/ksfilter/ks/pin.c
reactos/drivers/storage/scsiport/scsiport.c
reactos/drivers/wdm/audio/legacy/wdmaud/control.c

index 2226223..f3b5356 100644 (file)
@@ -2361,9 +2361,11 @@ KspCreatePin(
 
          if (IsEqualGUIDAligned(&Descriptor->PinDescriptor.DataRanges[Index]->SubFormat, &KSDATAFORMAT_SUBTYPE_BDA_MPEG2_TRANSPORT))
          {
+#if !defined(NDEBUG)
              PKS_DATARANGE_BDA_TRANSPORT Transport = (PKS_DATARANGE_BDA_TRANSPORT)&Descriptor->PinDescriptor.DataRanges[Index];
              DPRINT("KSDATAFORMAT_SUBTYPE_BDA_MPEG2_TRANSPORT AvgTimePerFrame %I64u ulcbPhyiscalFrame %lu ulcbPhyiscalFrameAlignment %lu ulcbPhyiscalPacket %lu\n", Transport->BdaTransportInfo.AvgTimePerFrame, Transport->BdaTransportInfo.ulcbPhyiscalFrame,
                     Transport->BdaTransportInfo.ulcbPhyiscalFrameAlignment, Transport->BdaTransportInfo.ulcbPhyiscalPacket);
+#endif
          }
     }
     if (!FrameSize)
index 0585b0d..7ad653a 100644 (file)
@@ -1026,7 +1026,6 @@ ScsiPortInitialize(IN PVOID Argument1,
     ULONG Result;
     NTSTATUS Status;
     ULONG MaxBus;
-    ULONG BusNumber = 0;
     PCI_SLOT_NUMBER SlotNumber;
 
     PDEVICE_OBJECT PortDeviceObject;
@@ -1683,7 +1682,7 @@ CreatePortConfig:
       if (!Again)
           ConfigInfo.BusNumber++;
 
-      DPRINT("Bus: %lu  MaxBus: %lu\n", BusNumber, MaxBus);
+      DPRINT("Bus: %lu  MaxBus: %lu\n", ConfigInfo.BusNumber, MaxBus);
 
       DeviceFound = TRUE;
     }
index 7630112..4fa7c54 100644 (file)
@@ -48,7 +48,6 @@ WdmAudControlDeviceType(
     IN  PWDMAUD_CLIENT ClientInfo)
 {
     ULONG Result = 0;
-    NTSTATUS Status = STATUS_SUCCESS;
 
     if (DeviceInfo->DeviceType == MIXER_DEVICE_TYPE)
     {
@@ -75,7 +74,7 @@ WdmAudControlDeviceType(
     /* store result count */
     DeviceInfo->DeviceCount = Result;
 
-    DPRINT("WdmAudControlDeviceType Status %x Devices %u\n", Status, DeviceInfo->DeviceCount);
+    DPRINT("WdmAudControlDeviceType Devices %u\n", DeviceInfo->DeviceCount);
     return SetIrpIoStatus(Irp, STATUS_SUCCESS, sizeof(WDMAUD_DEVICE_INFO));
 }
 
@@ -389,7 +388,6 @@ IoCompletion (
     PVOID Ctx)
 {
     PKSSTREAM_HEADER Header;
-    ULONG Length = 0;
     PMDL Mdl, NextMdl;
     PWDMAUD_COMPLETION_CONTEXT Context = (PWDMAUD_COMPLETION_CONTEXT)Ctx;
 
@@ -419,7 +417,7 @@ IoCompletion (
 
 
 
-    DPRINT("IoCompletion Irp %p IoStatus %lx Information %lx Length %lu\n", Irp, Irp->IoStatus.Status, Irp->IoStatus.Information, Length);
+    DPRINT("IoCompletion Irp %p IoStatus %lx Information %lx\n", Irp, Irp->IoStatus.Status, Irp->IoStatus.Information);
 
     if (!NT_SUCCESS(Irp->IoStatus.Status))
     {