diff --git a/csync/src/csync_log.h b/csync/src/csync_log.h index 38f5f9cac..0cd0d01fc 100644 --- a/csync/src/csync_log.h +++ b/csync/src/csync_log.h @@ -61,7 +61,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/csync/src/httpbf/src/httpbf.c b/csync/src/httpbf/src/httpbf.c index 815b07e13..2489e8d48 100644 --- a/csync/src/httpbf/src/httpbf.c +++ b/csync/src/httpbf/src/httpbf.c @@ -42,7 +42,7 @@ #define DEBUG_HBF(...) { if(transfer->log_cb) { \ char buf[1024]; \ snprintf(buf, 1024, __VA_ARGS__); \ - transfer->log_cb(__FUNCTION__, buf, transfer->user_data); \ + transfer->log_cb(__func__, buf, transfer->user_data); \ } } // #endif diff --git a/csync/tests/csync_tests/check_csync_log.c b/csync/tests/csync_tests/check_csync_log.c index 4c88c149d..65a8ae9b2 100644 --- a/csync/tests/csync_tests/check_csync_log.c +++ b/csync/tests/csync_tests/check_csync_log.c @@ -131,7 +131,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);