From fc9c5cf9a4f2473193ff3cc59c1851702311f072 Mon Sep 17 00:00:00 2001 From: Robert Dickenson Date: Thu, 3 Oct 2002 19:22:27 +0000 Subject: [PATCH] Some debug macro changes. svn path=/trunk/; revision=3610 --- reactos/ntoskrnl/io/device.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/io/device.c b/reactos/ntoskrnl/io/device.c index 752c5ac7923..ad5ce921e37 100644 --- a/reactos/ntoskrnl/io/device.c +++ b/reactos/ntoskrnl/io/device.c @@ -1,4 +1,4 @@ -/* $Id: device.c,v 1.48 2002/09/08 10:23:24 chorns Exp $ +/* $Id: device.c,v 1.49 2002/10/03 19:22:27 robd Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -22,6 +22,7 @@ #include #define NDEBUG +//#define DBG #include /* GLOBALS *******************************************************************/ @@ -155,7 +156,8 @@ VOID STDCALL IoDetachDevice(PDEVICE_OBJECT TargetDevice) { - UNIMPLEMENTED; +// UNIMPLEMENTED; + DPRINT("IoDetachDevice(TargetDevice %x) - UNIMPLEMENTED\n", TargetDevice); } @@ -645,6 +647,7 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject, if (!NT_SUCCESS(Status)) { + DPRINT("IoCreateDevice() ObCreateObject failed, status: 0x%08X\n", Status); return(Status); } @@ -670,6 +673,7 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject, if (DeviceExtensionSize > 0 && CreatedDeviceObject->DeviceExtension == NULL) { ExFreePool(CreatedDeviceObject); + DPRINT("IoCreateDevice() ExAllocatePoolWithTag failed, returning: 0x%08X\n", STATUS_INSUFFICIENT_RESOURCES); return(STATUS_INSUFFICIENT_RESOURCES); }