[ofw] patch: Allow ipoib 6 to compile as a C++ driver

Tzachi Dar tzachid at mellanox.co.il
Sun Jun 28 02:03:42 PDT 2009


Index: core/complib/kernel/cl_driver.c
===================================================================
--- core/complib/kernel/cl_driver.c (revision 2263)
+++ core/complib/kernel/cl_driver.c (working copy)
@@ -69,7 +69,7 @@
 
 #if defined( _DEBUG_ )
 
-VOID cl_dbg_out( IN PCCH  format, ...)
+VOID cl_dbg_out( IN const char* const format, ...)
 {
  va_list  list;
  va_start(list, format);
Index: inc/kernel/complib/cl_debug_osd.h
===================================================================
--- inc/kernel/complib/cl_debug_osd.h (revision 2263)
+++ inc/kernel/complib/cl_debug_osd.h (working copy)
@@ -59,8 +59,16 @@
 
 
 #if defined( _DEBUG_ )
-//#define cl_dbg_out DbgPrintHelper
-VOID cl_dbg_out( IN PCCH  Format, ...);
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+VOID cl_dbg_out( IN const char * const  Format, ...);
+#ifdef __cplusplus
+}
+#endif
+
 #else
 #define cl_dbg_out __noop
 #endif /* defined( _DEBUG_ ) */

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090628/e771a249/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpp.diff
Type: application/octet-stream
Size: 971 bytes
Desc: cpp.diff
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090628/e771a249/attachment.obj>


More information about the ofw mailing list