X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/546558eabd81cfc36a81a4df728fdfea0d83b41a..9e7cd40a7af81c08da36ef3cc4e0a951d58dd01e:/print-snmp.c diff --git a/print-snmp.c b/print-snmp.c index 856309b6..6607f051 100644 --- a/print-snmp.c +++ b/print-snmp.c @@ -76,7 +76,6 @@ #undef OPAQUE /* defined in */ -static const char tstr[] = "[|snmp]"; /* * Universal ASN.1 types @@ -669,7 +668,7 @@ asn1_parse(netdissect_options *ndo, return elem->asnlen + hdr; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return -1; } @@ -686,7 +685,7 @@ asn1_print_octets(netdissect_options *ndo, struct be *elem) return 0; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return -1; } @@ -705,7 +704,7 @@ asn1_print_string(netdissect_options *ndo, struct be *elem) p = elem->data.str; if (printable) { ND_PRINT("\""); - if (fn_printn(ndo, p, asnlen, ndo->ndo_snapend)) { + if (nd_printn(ndo, p, asnlen, ndo->ndo_snapend)) { ND_PRINT("\""); goto trunc; } @@ -719,7 +718,7 @@ asn1_print_string(netdissect_options *ndo, struct be *elem) return 0; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return -1; } @@ -850,7 +849,7 @@ asn1_print(netdissect_options *ndo, return 0; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return -1; } @@ -949,7 +948,7 @@ smi_decode_oid(netdissect_options *ndo, return 0; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return -1; }