[MTHCA] added processor number to all the debug prints
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 7 Feb 2007 12:02:19 +0000 (12:02 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 7 Feb 2007 12:02:19 +0000 (12:02 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@577 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/hca_debug.h

index 5fe3181..31a48ca 100644 (file)
@@ -143,7 +143,7 @@ static void _build_str( const char *        format, ... )
                int __lvl = _level_; \\r
                if (g_mthca_dbg_level >= (_level_) && \\r
                        (g_mthca_dbg_flags & (_flag_))) { \\r
-                               DbgPrint ("[MTHCA] %s() :", __FUNCTION__); \\r
+                               DbgPrint ("~%d:[MTHCA] %s() :", KeGetCurrentProcessorNumber(), __FUNCTION__); \\r
                                if(__lvl == TRACE_LEVEL_ERROR) DbgPrint ("***ERROR***  "); \\r
                                DbgPrint _msg_; \\r
                } \\r