From 2c9f0633869b1cdd1588821cedd1a20a19dd5fb8 Mon Sep 17 00:00:00 2001 From: Robert Dickenson Date: Sun, 10 Nov 2002 13:36:15 +0000 Subject: [PATCH] added #ifdef around headers to support private test build and modified debug messages. svn path=/trunk/; revision=3722 --- reactos/ntoskrnl/ob/namespc.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/reactos/ntoskrnl/ob/namespc.c b/reactos/ntoskrnl/ob/namespc.c index 4ffecc4a7b1..5e8525f040b 100644 --- a/reactos/ntoskrnl/ob/namespc.c +++ b/reactos/ntoskrnl/ob/namespc.c @@ -1,4 +1,4 @@ -/* $Id: namespc.c,v 1.34 2002/09/08 10:23:39 chorns Exp $ +/* $Id: namespc.c,v 1.35 2002/11/10 13:36:15 robd Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -11,6 +11,10 @@ /* INCLUDES ***************************************************************/ +#ifdef WIN32_REGDBG +#include "cm_win32.h" +#else + #include #include #include @@ -20,6 +24,8 @@ #define NDEBUG #include +#endif + /* GLOBALS ****************************************************************/ POBJECT_TYPE ObDirectoryType = NULL; @@ -40,7 +46,7 @@ static GENERIC_MAPPING ObpTypeMapping = { 0x000F0001}; /* FUNCTIONS **************************************************************/ - +#ifndef WIN32_REGDBG NTSTATUS STDCALL ObReferenceObjectByName(PUNICODE_STRING ObjectPath, ULONG Attributes, @@ -84,7 +90,7 @@ DPRINT("Object %p\n", Object); RtlFreeUnicodeString (&RemainingPath); return(STATUS_SUCCESS); } - +#endif // WIN32_REGDBG /********************************************************************** * NAME EXPORTED @@ -125,7 +131,7 @@ ObOpenObjectByName(IN POBJECT_ATTRIBUTES ObjectAttributes, PVOID Object = NULL; NTSTATUS Status; - DPRINT("ObOpenObjectByName()\n"); + DPRINT("ObOpenObjectByName(...)\n"); Status = ObFindObject(ObjectAttributes, &Object, @@ -220,7 +226,7 @@ ObpFindEntryDirectory(PDIRECTORY_OBJECT DirectoryObject, while (current!=(&(DirectoryObject->head))) { current_obj = CONTAINING_RECORD(current,OBJECT_HEADER,Entry); - DPRINT("Scanning %S %S\n",current_obj->Name.Buffer, Name); + DPRINT(" Scanning: %S for: %S\n",current_obj->Name.Buffer, Name); if (Attributes & OBJ_CASE_INSENSITIVE) { if (_wcsicmp(current_obj->Name.Buffer, Name)==0) @@ -239,7 +245,7 @@ ObpFindEntryDirectory(PDIRECTORY_OBJECT DirectoryObject, } current = current->Flink; } - DPRINT("%s() = NULL\n",__FUNCTION__); + DPRINT(" Not Found: %s() = NULL\n",__FUNCTION__); return(NULL); } @@ -417,7 +423,7 @@ ObpCreateTypeObject(POBJECT_TYPE ObjectType) UNICODE_STRING Name; NTSTATUS Status; - DPRINT("ObjectType: %wZ\n", &ObjectType->TypeName); + DPRINT("ObpCreateTypeObject(ObjectType: %wZ)\n", &ObjectType->TypeName); wcscpy(NameString, L"\\ObjectTypes\\"); wcscat(NameString, ObjectType->TypeName.Buffer); RtlInitUnicodeString(&Name, -- 2.17.1