]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print.c
Update ND_PRINT() as a variadic macro
[tcpdump] / print.c
diff --git a/print.c b/print.c
index 703d7ef2b619aa6ff0461017503bf808ae83174f..1e2e5f3fe951dd1482c6883c9e21ed264a2977e9 100644 (file)
--- a/print.c
+++ b/print.c
@@ -317,7 +317,7 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h,
        u_int hdrlen;
 
        if(ndo->ndo_packet_number)
-               ND_PRINT((ndo, "%5u  ", packets_captured));
+               ND_PRINT("%5u  ", packets_captured);
 
        ts_print(ndo, &h->ts);
 
@@ -394,7 +394,7 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h,
                }
        }
 
-       ND_PRINT((ndo, "\n"));
+       ND_PRINT("\n");
 }
 
 /*