From c64fd37802d3609522d8121a21126ea797bf4e23 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Tue, 10 Sep 2013 16:11:37 +0300 Subject: codingstyle: Change __FUNCTION__ to __func__ The __func__ macro is part of the C99 standard whereas __FUNCTION__ is a legacy gcc specific alias for it: http://gcc.gnu.org/onlinedocs/gcc/Function-Names.html Additionally, checkpatch.pl that's commonly used to verify coding style also recommends to use __func__ instead of __FUNCTION__. --- gobex/gobex-debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gobex') diff --git a/gobex/gobex-debug.h b/gobex/gobex-debug.h index 688466ef5..a98653d83 100644 --- a/gobex/gobex-debug.h +++ b/gobex/gobex-debug.h @@ -40,7 +40,7 @@ extern guint gobex_debug; #define g_obex_debug(level, format, ...) \ if (gobex_debug & level) \ g_log("gobex", G_LOG_LEVEL_DEBUG, "%s:%s() " format, __FILE__, \ - __FUNCTION__, ## __VA_ARGS__) + __func__, ## __VA_ARGS__) static inline void g_obex_dump(guint level, const char *prefix, const void *buf, gsize len) -- cgit v1.2.1