g_log() accelerated by 'captive_debug_messages_disabled' slave global flag. captive-1_0_1
authorshort <>
Tue, 28 Oct 2003 16:40:23 +0000 (16:40 +0000)
committershort <>
Tue, 28 Oct 2003 16:40:23 +0000 (16:40 +0000)
ntoskrnl/dbg/print.c

index f3f6a8f..d892fab 100644 (file)
@@ -57,7 +57,7 @@ __asm__ ("\n\t.global _DbgService\n\t"
  */
 
 #ifdef LIBCAPTIVE
-extern gboolean captive_get_debug_messages(void);
+extern gboolean captive_debug_messages_disabled;
 #endif /* LIBCAPTIVE */
 
 /*
@@ -71,7 +71,7 @@ DbgPrint(PCH Format, ...)
    va_list ap;
 
 #ifdef LIBCAPTIVE
-   if (!captive_get_debug_messages())
+   if (captive_debug_messages_disabled)
       return 0;
 #endif /* LIBCAPTIVE */