]> The Tcpdump Group git mirrors - tcpdump/blobdiff - netdissect.h
Update ND_PRINT() as a variadic macro
[tcpdump] / netdissect.h
index d6800a50c3b8f9a854a5a9f047b03606e71dd97e..e809e04ad2933b72f8ddc3d32b62a9434e825e6c 100644 (file)
@@ -346,7 +346,7 @@ struct netdissect_options {
 /* Bail out if "*(p)" was not captured */
 #define ND_TCHECK_SIZE(p) ND_TCHECK_LEN(p, sizeof(*(p)))
 
-#define ND_PRINT(STUFF) (ndo->ndo_printf)STUFF
+#define ND_PRINT(...) (ndo->ndo_printf)(ndo, __VA_ARGS__)
 #define ND_DEFAULTPRINT(ap, length) (*ndo->ndo_default_print)(ndo, ap, length)
 
 extern void ts_print(netdissect_options *, const struct timeval *);