Author: tkreuzer
Date: Tue Mar 27 17:30:51 2012
New Revision: 56250
URL:
http://svn.reactos.org/svn/reactos?rev=56250&view=rev
Log:
Fix build
Modified:
trunk/reactos/lib/rtl/avlsupp.c
Modified: trunk/reactos/lib/rtl/avlsupp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/avlsupp.c?rev=5625…
==============================================================================
--- trunk/reactos/lib/rtl/avlsupp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/avlsupp.c [iso-8859-1] Tue Mar 27 17:30:51 2012
@@ -203,6 +203,7 @@
return TRUE;
}
+#ifdef PRTL_BALANCED_LINKS
void
FORCEINLINE
Indent(ULONG Level)
@@ -213,13 +214,11 @@
}
}
-VOID
-FORCEINLINE
+static VOID
DbgDumpAvlNodes(
PRTL_BALANCED_LINKS Node,
ULONG Level)
{
-#ifdef PRTL_BALANCED_LINKS
if (Level == 0)
{
DbgPrint("++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
@@ -239,8 +238,9 @@
DbgPrint("(%lx, %lx)\n",
Node->RightChild->StartingVpn,Node->RightChild->EndingVpn);
DbgDumpAvlNodes(Node->RightChild, Level+1);
}
+ else DbgPrint("\n");
+}
#endif
-}
VOID
@@ -268,8 +268,8 @@
if (RtlBalance(NewNode) != RtlBalancedAvlTree)
{
DPRINT1("Warning: Root node unbalanced?\n");
+#ifdef PRTL_BALANCED_LINKS
DbgDumpAvlNodes(&Table->BalancedRoot, 0);
-#ifdef PRTL_BALANCED_LINKS
KeRosDumpStackFrames(NULL, 0);
#endif
}
@@ -295,8 +295,8 @@
if (RtlBalance(NewNode) != RtlBalancedAvlTree)
{
DPRINT1("Warning: Root node unbalanced?\n");
+#ifdef PRTL_BALANCED_LINKS
DbgDumpAvlNodes(&Table->BalancedRoot, 0);
-#ifdef PRTL_BALANCED_LINKS
KeRosDumpStackFrames(NULL, 0);
#endif
}