From: tzachid Date: Mon, 21 Nov 2005 12:06:39 +0000 (+0000) Subject: Function names are now printed automatically (Rev 75) X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e3c7b46fc56de406290f2adbca0ff7286269686e;p=~shefty%2Frdma-win.git Function names are now printed automatically (Rev 75) git-svn-id: svn://openib.tc.cornell.edu/gen1@162 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/ulp/sdp/kernel/SOURCES b/trunk/ulp/sdp/kernel/SOURCES index 2767487f..1b775bcc 100644 --- a/trunk/ulp/sdp/kernel/SOURCES +++ b/trunk/ulp/sdp/kernel/SOURCES @@ -6,7 +6,8 @@ SOURCES= SdpDriver.cpp \ SdpUserFile.cpp \ SdpGenUtils.cpp \ SdpSocket.cpp \ - SdpArp.cpp + SdpArp.cpp \ + SdpTrace.cpp INCLUDES=..\include;\ ..\..\..\inc;\ diff --git a/trunk/ulp/sdp/kernel/SdpSocket.cpp b/trunk/ulp/sdp/kernel/SdpSocket.cpp index dc74a7b6..b895b171 100644 --- a/trunk/ulp/sdp/kernel/SdpSocket.cpp +++ b/trunk/ulp/sdp/kernel/SdpSocket.cpp @@ -10,6 +10,7 @@ static void AL_API cm_rej_callback(IN ib_cm_rej_rec_t *p_cm_rej_rec ) { SDP_PRINT(SDP_TRACE, SDP_SOCKET, ("cm_rej_callback called")); + // BUGBUG: This should be used to return error to the connecting side } static void AL_API diff --git a/trunk/ulp/sdp/kernel/SdpTrace.cpp b/trunk/ulp/sdp/kernel/SdpTrace.cpp new file mode 100644 index 00000000..ee935831 --- /dev/null +++ b/trunk/ulp/sdp/kernel/SdpTrace.cpp @@ -0,0 +1,10 @@ +/* Copyright mellanox */ + + +#include "Precompile.h" + +BOOLEAN CheckCondition(int sev, int top, char *file, int line, char * func) +{ + DbgPrint ("%s ", func); + return TRUE; +} \ No newline at end of file diff --git a/trunk/ulp/sdp/kernel/SdpTrace.h b/trunk/ulp/sdp/kernel/SdpTrace.h index fe7b48a9..94f68e57 100644 --- a/trunk/ulp/sdp/kernel/SdpTrace.h +++ b/trunk/ulp/sdp/kernel/SdpTrace.h @@ -18,14 +18,11 @@ // BUGBUG: CONVERT TO A FUNCTION -//BOOLEAN CheckCondition(int sev, int top, char *file, int line) { -// return TRUE; -//} -#define CheckCondition(a,b,c,d) TRUE +BOOLEAN CheckCondition(int sev, int top, char *file, int line, char * func); #define SDP_PRINT(sev, toppic ,var_args) \ - if (CheckCondition(sev, toppic ,__FILE__, __LINE__) != FALSE) \ - DbgPrint var_args + if (CheckCondition(sev, toppic ,__FILE__, __LINE__,__FUNCTION__) != FALSE) \ + DbgPrint var_args