Commit c5414cef authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #3429 from guoxiao/warning

Use the standard predefined identifier __func__ (since C99)
parents e7f17981 4bd72ab7
...@@ -34,7 +34,7 @@ ...@@ -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); \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment