From: Francois-Xavier Le Bail Date: Sat, 31 Oct 2020 22:40:09 +0000 (+0100) Subject: Use __func__ from C99 in the debug macro ND_DEBUG X-Git-Tag: tcpdump-4.99-bp~78 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/7bd4c9482dbd07ce2edfe20dcf652cc09866dc22 Use __func__ from C99 in the debug macro ND_DEBUG --- diff --git a/netdissect.h b/netdissect.h index e288d031..afa5283d 100644 --- a/netdissect.h +++ b/netdissect.h @@ -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 */