[ros-diffs] [tkreuzer] 56250: Fix build

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Mar 27 17:30:52 UTC 2012


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=56250&r1=56249&r2=56250&view=diff
==============================================================================
--- 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
     }




More information about the Ros-diffs mailing list