mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Merge pull request #3429 from guoxiao/warning
Use the standard predefined identifier __func__ (since C99)
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#define D(...) \
|
||||
do { \
|
||||
FILE *fp = fopen("/tmp/log.txt","a"); \
|
||||
fprintf(fp,"%s:%s:%d:\t", __FILE__, __FUNCTION__, __LINE__); \
|
||||
fprintf(fp,"%s:%s:%d:\t", __FILE__, __func__, __LINE__); \
|
||||
fprintf(fp,__VA_ARGS__); \
|
||||
fprintf(fp,"\n"); \
|
||||
fclose(fp); \
|
||||
|
||||
Reference in New Issue
Block a user