From 891ec20755f330e5cc62be1ae9467e7d68103e68 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 6 Mar 2009 16:48:30 +0100 Subject: [PATCH] Use __FUNCTION__ in LOG() --- include/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);