trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject [10/15] git commit: use C99's __func__.
Date Thu, 08 Aug 2013 17:47:05 GMT
use C99's __func__.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d2c4a27a
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d2c4a27a
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d2c4a27a

Branch: refs/heads/consistent-gzip-error-msgs
Commit: d2c4a27a13c63466f309bc3564adc50117c0a7d3
Parents: f12bd8c
Author: Igor Galić <i.galic@brainsware.org>
Authored: Thu Aug 8 17:30:18 2013 +0200
Committer: Igor Galić <i.galic@brainsware.org>
Committed: Thu Aug 8 19:39:03 2013 +0200

----------------------------------------------------------------------
 proxy/api/ts/ts-debug.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d2c4a27a/proxy/api/ts/ts-debug.h
----------------------------------------------------------------------
diff --git a/proxy/api/ts/ts-debug.h b/proxy/api/ts/ts-debug.h
index e5a4f9d..7e0854e 100644
--- a/proxy/api/ts/ts-debug.h
+++ b/proxy/api/ts/ts-debug.h
@@ -43,7 +43,7 @@
 #else
 
 #define TSLogDebug(fmt, args...) do {                                    \
-  TSDebug(PLUGIN_NAME, "DEBUG: [%s:%d] [%s] " fmt, __FILE__, __LINE__, __FUNCTION__ , ##args
); \
+  TSDebug(PLUGIN_NAME, "DEBUG: [%s:%d] [%s] " fmt, __FILE__, __LINE__, __func__ , ##args
); \
   } while (0)
 
 #define TSLogInfo(fmt, args...) do {                                    \
@@ -55,14 +55,14 @@
 } while (0)
 
 #define TSLogError(fmt, args...) do {                                    \
-  TSError("[%s] [%s:%d] [%s] ERROR: " fmt, PLUGIN_NAME, __FILE__, __LINE__, __FUNCTION__
, ##args ); \
-  TSDebug(PLUGIN_NAME, "[%s:%d] [%s] ERROR: " fmt, __FILE__, __LINE__, __FUNCTION__ , ##args
); \
+  TSError("[%s] [%s:%d] [%s] ERROR: " fmt, PLUGIN_NAME, __FILE__, __LINE__, __func__ , ##args
); \
+  TSDebug(PLUGIN_NAME, "[%s:%d] [%s] ERROR: " fmt, __FILE__, __LINE__, __func__ , ##args
); \
 } while (0)
 #endif
 
 #define TSLogFatal(fmt, args...) do {                                    \
-  TSError("[%s] [%s:%d] [%s] FATAL: " fmt, PLUGIN_NAME, __FILE__, __LINE__, __FUNCTION__
, ##args ); \
-  TSDebug(PLUGIN_NAME, "[%s:%d] [%s] FATAL: " fmt, __FILE__, __LINE__, __FUNCTION__ , ##args
); \
+  TSError("[%s] [%s:%d] [%s] FATAL: " fmt, PLUGIN_NAME, __FILE__, __LINE__, __func__ , ##args
); \
+  TSDebug(PLUGIN_NAME, "[%s:%d] [%s] FATAL: " fmt, __FILE__, __LINE__, __func__ , ##args
); \
   exit(-1); \
 } while (0)
 


Mime
View raw message