diff options
-rw-r--r-- | ufed-curses-debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ufed-curses-debug.h b/ufed-curses-debug.h index 67bbf2c..d4a8716 100644 --- a/ufed-curses-debug.h +++ b/ufed-curses-debug.h @@ -19,7 +19,7 @@ # define ERROR_EXIT(code, fmt, ...) { \ cursesdone(); \ fprintf(stderr, "\nERROR in %s:%d (%s): \n -> ", \ - __FILE__, __LINE__, __FUNCTION__); \ + __FILE__, __LINE__, __func__); \ fprintf(stderr, fmt, __VA_ARGS__); \ exit(code); \ } @@ -30,7 +30,7 @@ // DEBUG_TRACE -> TRACE macro #if defined(DEBUG_TRACE) # define TRACE { \ - fprintf(stderr, "(TRACE) %s:%d - %s\n", __FILE__, __LINE__, __FUNCTION__); \ + fprintf(stderr, "(TRACE) %s:%d - %s\n", __FILE__, __LINE__, __func__); \ } #else # define TRACE |