[Openib-windows] [PATCH] AL_PRINT macro fix

Yossi Leybovich sleybo at mellanox.co.il
Sun Jun 25 06:26:45 PDT 2006


Fab
 
I think that there is typo in the implementation of AL_PRINT/ENTER/EXIT.
Need to pass g_al_dbg_flags to the CL_PRINT macro.
 
This patch fix the problem.
Do you want me to apply it?
 
10x
Yossi
 
Singed-off-by: Yossi Leybovich (sleybo at mellanox.co.il)
Index: core/al/al_debug.h
===================================================================
--- core/al/al_debug.h (revision 1485)
+++ core/al/al_debug.h (working copy)
@@ -175,27 +175,27 @@
 #define AL_PRINT( _level_,_flag_,_msg_)  \
  { \
   if( g_al_dbg_level >= (_level_) ) \
-   CL_TRACE( _flag_, g_al_dbg_level, _msg_ ); \
+   CL_TRACE( _flag_, g_al_dbg_flags, _msg_ ); \
  }
 
 
 #define AL_PRINT_EXIT( _level_,_flag_,_msg_) \
  { \
   if( g_al_dbg_level >= (_level_) ) \
-   CL_TRACE( _flag_, g_al_dbg_level, _msg_ );\
+   CL_TRACE( _flag_, g_al_dbg_flags, _msg_ );\
   AL_EXIT( _flag_ );\
  }
 
 #define AL_ENTER( _flag_) \
  { \
   if( g_al_dbg_level >= TRACE_LEVEL_VERBOSE ) \
-   CL_ENTER( _flag_, g_al_dbg_level ); \
+   CL_ENTER( _flag_, g_al_dbg_flags ); \
  }
 
 #define AL_EXIT( _flag_)\
  { \
   if( g_al_dbg_level >= TRACE_LEVEL_VERBOSE ) \
-   CL_EXIT( _flag_, g_al_dbg_level ); \
+   CL_EXIT( _flag_, g_al_dbg_flags ); \
  }
 
 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: al_debug.patch
Type: application/octet-stream
Size: 988 bytes
Desc: al_debug.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060625/b82e8c20/attachment.obj>


More information about the ofw mailing list