- turned on in the default captive.conf
#include <ddk/ntddk.h>
#include <internal/kd.h>
+#ifdef LIBCAPTIVE
+#include <glib/gtypes.h> /* for gboolean */
+#endif /* LIBCAPTIVE */
/* FUNCTIONS ****************************************************************/
* You'll only break the serial/bochs debugging feature!!!
*/
+#ifdef LIBCAPTIVE
+extern gboolean captive_debug_messages;
+#endif /* LIBCAPTIVE */
+
ULONG
DbgPrint(PCH Format, ...)
{
CHAR Buffer[1024];
va_list ap;
+#ifdef LIBCAPTIVE
+ if (!captive_debug_messages)
+ return 0;
+#endif /* LIBCAPTIVE */
+
/* init ansi string */
DebugString.Buffer = Buffer;
DebugString.MaximumLength = sizeof(Buffer);