diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-11-12 16:26:15 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-11-12 16:26:15 +0100 |
commit | 9e28a93307f0ddbe81e0b881722550005ec94f02 (patch) | |
tree | 9e68c4d6333a6f2243f476b5498efc509431f838 | |
parent | 44e1a6792bd36b0daeebfff1ab71ad7a45ecaafc (diff) | |
download | csync-9e28a93307f0ddbe81e0b881722550005ec94f02.tar.gz csync-9e28a93307f0ddbe81e0b881722550005ec94f02.tar.xz csync-9e28a93307f0ddbe81e0b881722550005ec94f02.zip |
src: Use __func__ instead of __FUNCTION__
This fixes compilation with newer GCC versions.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | src/csync_log.h | 2 | ||||
-rw-r--r-- | tests/csync_tests/check_csync_log.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/csync_log.h b/src/csync_log.h index 85b0c96..a6e4470 100644 --- a/src/csync_log.h +++ b/src/csync_log.h @@ -55,7 +55,7 @@ enum csync_log_priority_e { }; #define CSYNC_LOG(priority, ...) \ - csync_log(priority, __FUNCTION__, __VA_ARGS__) + csync_log(priority, __func__, __VA_ARGS__) void csync_log(int verbosity, const char *function, diff --git a/tests/csync_tests/check_csync_log.c b/tests/csync_tests/check_csync_log.c index 8603733..e3ec00e 100644 --- a/tests/csync_tests/check_csync_log.c +++ b/tests/csync_tests/check_csync_log.c @@ -115,7 +115,7 @@ static void check_logging(void **state) rc = csync_set_log_callback(check_log_callback); assert_int_equal(rc, 0); - csync_log(1, __FUNCTION__, "rc = %d", rc); + csync_log(1, __func__, "rc = %d", rc); rc = _tstat(path, &sb); |