Function names are now printed automatically (Rev 75)
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Nov 2005 12:06:39 +0000 (12:06 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 21 Nov 2005 12:06:39 +0000 (12:06 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@162 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/sdp/kernel/SOURCES
ulp/sdp/kernel/SdpSocket.cpp
ulp/sdp/kernel/SdpTrace.cpp [new file with mode: 0644]
ulp/sdp/kernel/SdpTrace.h

index 2767487..1b775bc 100644 (file)
@@ -6,7 +6,8 @@ SOURCES= SdpDriver.cpp          \
         SdpUserFile.cpp        \\r
         SdpGenUtils.cpp        \\r
         SdpSocket.cpp          \\r
-        SdpArp.cpp\r
+        SdpArp.cpp             \\r
+        SdpTrace.cpp\r
 \r
 INCLUDES=..\include;\\r
          ..\..\..\inc;\\r
index dc74a7b..b895b17 100644 (file)
@@ -10,6 +10,7 @@ static void AL_API
 cm_rej_callback(IN ib_cm_rej_rec_t *p_cm_rej_rec )\r
 {\r
     SDP_PRINT(SDP_TRACE, SDP_SOCKET, ("cm_rej_callback called"));\r
+    // BUGBUG: This should be used to return error to the connecting side\r
 }\r
 \r
 static void AL_API\r
diff --git a/ulp/sdp/kernel/SdpTrace.cpp b/ulp/sdp/kernel/SdpTrace.cpp
new file mode 100644 (file)
index 0000000..ee93583
--- /dev/null
@@ -0,0 +1,10 @@
+/* Copyright mellanox */\r
+\r
+\r
+#include "Precompile.h"\r
+\r
+BOOLEAN CheckCondition(int sev, int top, char *file, int line, char * func)\r
+{\r
+    DbgPrint ("%s ", func);\r
+    return TRUE;\r
+}
\ No newline at end of file
index fe7b48a..94f68e5 100644 (file)
 \r
 // BUGBUG: CONVERT TO A FUNCTION\r
 \r
-//BOOLEAN CheckCondition(int sev, int top, char *file, int line) {\r
-//     return TRUE;\r
-//}\r
-#define CheckCondition(a,b,c,d) TRUE\r
+BOOLEAN CheckCondition(int sev, int top, char *file, int line, char * func);\r
 \r
 #define SDP_PRINT(sev, toppic ,var_args)                                               \\r
-       if (CheckCondition(sev, toppic ,__FILE__, __LINE__)  != FALSE)  \\r
-       DbgPrint var_args\r
+    if (CheckCondition(sev, toppic ,__FILE__, __LINE__,__FUNCTION__)  != FALSE)  \\r
+    DbgPrint var_args\r
 \r
 \r
 \r