diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2016-08-04 10:25:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-04 10:25:53 +0200 |
commit | c5414cef71c4ff1501ee62cbdfbb6cec52ca4296 (patch) | |
tree | 7218271b9cb0321b858105686a523e6e119433a4 | |
parent | e7f1798179c3b4e01a617e98ec7bb3d258642711 (diff) | |
parent | 4bd72ab729135a4cde76bffe0fb119d9aeb72672 (diff) | |
download | redis-c5414cef71c4ff1501ee62cbdfbb6cec52ca4296.tar.gz |
Merge pull request #3429 from guoxiao/warning
Use the standard predefined identifier __func__ (since C99)
-rw-r--r-- | src/debugmacro.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debugmacro.h b/src/debugmacro.h index df237bad3..ded2d2667 100644 --- a/src/debugmacro.h +++ b/src/debugmacro.h @@ -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); \ |