summaryrefslogtreecommitdiff
blob: 576ee21acce3964648ca5a7367a0d71194443b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/sd/error.h.orig	2004-11-21 08:29:18.168483856 +0930
+++ src/sd/error.h	2004-11-21 08:32:48.421520536 +0930
@@ -14,13 +14,13 @@
 #ifdef __SD_DEBUG__ 
 
 #   define __sd_str(n) #n
-#   define __sd_location(n) __FUNCTION__"() at " __FILE__":" __sd_str(n)
+#   define __sd_location(n) "() at " __FILE__":" __sd_str(n)
 #   define sd_location  __sd_location(__LINE__)
 
 #   define sd_debug(a_format, ...) \
-	(getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0)
+	(getenv("SD_DEBUG") ? fprintf(stderr, "[DEBUG] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0)
 #   define sd_error(a_format, ...) \
-	(getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] "sd_location" "a_format"\n", ##__VA_ARGS__ ) : 0)
+	(getenv("SD_ERROR") ? fprintf(stderr, "[ERROR] %s"sd_location" "a_format"\n", __FUNCTION__,##__VA_ARGS__ ) : 0)
 #   define sd_oserror(afunc, aparam) \
         (sd_error("%s(%s): #%d %s", afunc, aparam, errno, strerror(errno)), -1)