[KS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 25 Sep 2009 17:26:33 +0000 (17:26 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 25 Sep 2009 17:26:33 +0000 (17:26 +0000)
- Silent debug traces
- Try fix 'Assertion 'WorkItem->List.Flink == NULL' failed at ntoskrnl\ex\work.c'

svn path=/trunk/; revision=43146

reactos/drivers/ksfilter/ks/api.c
reactos/drivers/ksfilter/ks/irp.c
reactos/drivers/ksfilter/ks/worker.c

index 7d22c40..af9fd81 100644 (file)
@@ -719,7 +719,7 @@ KsFreeObjectHeader(
 {
     PKSIOBJECT_HEADER ObjectHeader = (PKSIOBJECT_HEADER) Header;
 
-    DPRINT1("KsFreeObjectHeader Header %p Class %wZ\n", Header, &ObjectHeader->ObjectClass);
+    DPRINT("KsFreeObjectHeader Header %p Class %wZ\n", Header, &ObjectHeader->ObjectClass);
 
     if (ObjectHeader->ObjectClass.Buffer)
     {
@@ -804,7 +804,7 @@ KsAddObjectCreateItemToDeviceHeader(
 
     Header = (PKSIDEVICE_HEADER)DevHeader;
 
-    DPRINT1("KsAddObjectCreateItemToDeviceHeader entered\n");
+    DPRINT("KsAddObjectCreateItemToDeviceHeader entered\n");
 
      /* check if a device header has been provided */
     if (!DevHeader)
@@ -848,7 +848,7 @@ KsAddObjectCreateItemToObjectHeader(
 
     Header = (PKSIOBJECT_HEADER)ObjectHeader;
 
-    DPRINT1("KsAddObjectCreateItemToDeviceHeader entered\n");
+    DPRINT("KsAddObjectCreateItemToDeviceHeader entered\n");
 
      /* check if a device header has been provided */
     if (!Header)
@@ -1377,7 +1377,7 @@ KopDispatchCreate(
     DriverObjectExtension = (PKO_DRIVER_EXTENSION)IoGetDriverObjectExtension(DeviceObject->DriverObject, (PVOID)KoDriverInitialize);
     if (!DriverObjectExtension)
     {
-        DPRINT1("FileObject not attached!\n");
+        DPRINT1("No DriverObjectExtension!\n");
         Status = STATUS_UNSUCCESSFUL;
         goto cleanup;
     }
index a874abc..be844ba 100644 (file)
@@ -1742,7 +1742,7 @@ FindMatchingCreateItem(
 
         ASSERT(CreateItemEntry->CreateItem->ObjectClass.Buffer);
 
-        DPRINT1("CreateItem %S Length %u Request %S %u\n", CreateItemEntry->CreateItem->ObjectClass.Buffer,
+        DPRINT("CreateItem %S Length %u Request %S %u\n", CreateItemEntry->CreateItem->ObjectClass.Buffer,
                                                            CreateItemEntry->CreateItem->ObjectClass.Length,
                                                            Buffer,
                                                            BufferSize);
index 4dc983c..2f4ce8d 100644 (file)
@@ -272,7 +272,7 @@ KsQueueWorkItem(
         /* clear event */
         KeClearEvent(&KsWorker->Event);
         /* it is, queue it */
-        ExQueueWorkItem(WorkItem, KsWorker->Type);
+        ExQueueWorkItem(&KsWorker->WorkItem, KsWorker->Type);
     }
     /* release lock */
     KeReleaseSpinLock(&KsWorker->Lock, OldIrql);