]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pflog.c
Fix spaces
[tcpdump] / print-pflog.c
index a98a0fc1906d49b45265d6e92aba16371b2a91a7..7cd96b2eca023588b3b89b588e3fc046c2c6c568 100644 (file)
@@ -39,7 +39,6 @@
 #include "netdissect.h"
 #include "extract.h"
 
-static const char tstr[] = "[|pflog]";
 
 static const struct tok pf_reasons[] = {
        { 0,    "0(match)" },
@@ -118,7 +117,7 @@ pflog_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
        ndo->ndo_protocol = "pflog_if";
        /* check length */
        if (caplen < sizeof(uint8_t)) {
-               ND_PRINT("%s", tstr);
+               nd_print_trunc(ndo);
                return (caplen);
        }
 
@@ -131,7 +130,7 @@ pflog_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
        hdrlen = BPF_WORDALIGN(hdr->length);
 
        if (caplen < hdrlen) {
-               ND_PRINT("%s", tstr);
+               nd_print_trunc(ndo);
                return (hdrlen);        /* XXX: true? */
        }
 
@@ -175,6 +174,6 @@ pflog_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
 
        return (hdrlen);
 trunc:
-       ND_PRINT("%s", tstr);
+       nd_print_trunc(ndo);
        return (hdrlen);
 }