From: Michael Stapelberg Date: Fri, 6 Mar 2009 15:48:30 +0000 (+0100) Subject: Use __FUNCTION__ in LOG() X-Git-Tag: 3.a~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=891ec20755f330e5cc62be1ae9467e7d68103e68;p=i3%2Fi3 Use __FUNCTION__ in LOG() --- diff --git a/include/util.h b/include/util.h index 85f6d988..4e4e3d05 100644 --- a/include/util.h +++ b/include/util.h @@ -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);