summaryrefslogtreecommitdiff
path: root/tests/drmstat.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-04-05 16:50:33 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-04-28 11:21:02 +0100
commit41eb131dfe1b8c03cda6e271496bcb7729e58fb6 (patch)
tree747a3b49fd82ebc0b5ea57628261b2a839300462 /tests/drmstat.c
parente59f00fb43c2b83bdadb17fa35c3018f817a3806 (diff)
drm: use c99 __func__ over __FUNCTION__
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests/drmstat.c')
-rw-r--r--tests/drmstat.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/drmstat.c b/tests/drmstat.c
index c800ebb1..023aa069 100644
--- a/tests/drmstat.c
+++ b/tests/drmstat.c
@@ -48,11 +48,6 @@
#endif
#include "xf86drm.h"
-/* Support gcc's __FUNCTION__ for people using other compilers */
-#if !defined(__GNUC__) && !defined(__FUNCTION__)
-# define __FUNCTION__ __func__ /* C99 */
-#endif
-
int sigio_fd;
static double usec(struct timeval *end, struct timeval *start)
@@ -87,7 +82,7 @@ static void process_sigio(char *device)
int fd;
if ((fd = open(device, 0)) < 0) {
- drmError(-errno, __FUNCTION__);
+ drmError(-errno, __func__);
exit(1);
}