[ofw] patch: replace DbgPrint with DbgPrintEx
Tzachi Dar
tzachid at mellanox.co.il
Sun Nov 16 05:32:24 PST 2008
Replace the use of DbgPrint with DbgPrintEx that is displayed on windows
2008 by default.
Please note that this is a first replacement, and there are many more
needed.
Thanks
Tzachi
Index: core/complib/kernel/cl_driver.c
===================================================================
--- core/complib/kernel/cl_driver.c (revision 3475)
+++ core/complib/kernel/cl_driver.c (working copy)
@@ -31,8 +31,8 @@
#include "complib/comp_lib.h"
+#include <stdarg.h>
-
CL_EXPORT NTSTATUS
cl_to_ntstatus(
IN cl_status_t status )
@@ -64,3 +64,14 @@
return CL_ERROR;
}
}
+
+#if defined( _DEBUG_ )
+
+VOID cl_dbg_out( IN PCCH format, ...)
+{
+ va_list list;
+ va_start(list, format);
+ vDbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_ERROR_LEVEL, format, list);
+ va_end(list);
+}
+#endif
Index: inc/kernel/complib/cl_debug_osd.h
===================================================================
--- inc/kernel/complib/cl_debug_osd.h (revision 3475)
+++ inc/kernel/complib/cl_debug_osd.h (working copy)
@@ -59,7 +59,10 @@
#if defined( _DEBUG_ )
-#define cl_dbg_out DbgPrint
+
+VOID cl_dbg_out( IN PCCH Format, ...);
+
+//#define cl_dbg_out DbgPrintHelper
#else
#define cl_dbg_out __noop
#endif /* defined( _DEBUG_ ) */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081116/11a88f42/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug_view2008.patch
Type: application/octet-stream
Size: 1093 bytes
Desc: debug_view2008.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081116/11a88f42/attachment.obj>
More information about the ofw
mailing list