Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c5414cef
Commit
c5414cef
authored
Aug 04, 2016
by
Salvatore Sanfilippo
Committed by
GitHub
Aug 04, 2016
Browse files
Merge pull request #3429 from guoxiao/warning
Use the standard predefined identifier __func__ (since C99)
parents
e7f17981
4bd72ab7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/debugmacro.h
View file @
c5414cef
...
...
@@ -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); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment