]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use __func__ from C99 in the debug macro ND_DEBUG
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 31 Oct 2020 22:40:09 +0000 (23:40 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 31 Oct 2020 22:40:09 +0000 (23:40 +0100)
netdissect.h

index e288d0317fe5b720ddced1545d864b47ce5cd306..afa5283d6199d5628e068d1a339024891e0d5124 100644 (file)
@@ -462,7 +462,7 @@ extern const struct tok *uint2tokary_internal(const struct uint_tokary[], const
 
 extern if_printer lookup_printer(int);
 
-#define ND_DEBUG {printf(" [%s:%d %s] ", __FILE__, __LINE__, __FUNCTION__); fflush(stdout);}
+#define ND_DEBUG {printf(" [%s:%d %s] ", __FILE__, __LINE__, __func__); fflush(stdout);}
 
 /* The DLT printer routines */