Use __FUNCTION__ in LOG()

This commit is contained in:
Michael Stapelberg 2009-03-06 16:48:30 +01:00
parent 4259e58655
commit 891ec20755
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
CIRCLEQ_PREV(elm, field) : NULL)
/* ##__VA_ARGS__ means: leave out __VA_ARGS__ completely if it is empty, that is,
delete the preceding comma */
#define LOG(fmt, ...) slog("%s:%d - " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOG(fmt, ...) slog("%s:%s:%d - " fmt, __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__)
int min(int a, int b);