mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Use the standard predefined identifier __func__ (since C99)
Fix warning: ISO C does not support '__FUNCTION__' predefined identifier [-Wpedantic]
This commit is contained in:
parent
e7f1798179
commit
4bd72ab729
@ -34,7 +34,7 @@
|
|||||||
#define D(...) \
|
#define D(...) \
|
||||||
do { \
|
do { \
|
||||||
FILE *fp = fopen("/tmp/log.txt","a"); \
|
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,__VA_ARGS__); \
|
||||||
fprintf(fp,"\n"); \
|
fprintf(fp,"\n"); \
|
||||||
fclose(fp); \
|
fclose(fp); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user