summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-04-07 15:19:26 +0200
committerDavid Seifert <soap@gentoo.org>2019-04-07 15:19:26 +0200
commitc524303a1c156b83eb172d8045de683a6b7880a3 (patch)
treec27e5031b52097b00b0b239de5117025f46c3621
parentRemove and .gitignore Autotools cruft (diff)
downloadufed-c524303a1c156b83eb172d8045de683a6b7880a3.tar.gz
ufed-c524303a1c156b83eb172d8045de683a6b7880a3.tar.bz2
ufed-c524303a1c156b83eb172d8045de683a6b7880a3.zip
Replace GNU `__FUNCTION__` by C99 `__func__`
Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r--ufed-curses-debug.h4
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