X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/dc9744f7c6f1aa8f676f84829ee9a69a52952f94..1ed63b5:/print-lldp.c?ds=sidebyside diff --git a/print-lldp.c b/print-lldp.c index 9445f702..a578f4ea 100644 --- a/print-lldp.c +++ b/print-lldp.c @@ -1360,10 +1360,10 @@ lldp_network_addr_print(netdissect_options *ndo, const u_char *tptr, u_int len) } if (!pfunc) { - nd_snprintf(buf, sizeof(buf), "AFI %s (%u), no AF printer !", + snprintf(buf, sizeof(buf), "AFI %s (%u), no AF printer !", tok2str(af_values, "Unknown", af), af); } else { - nd_snprintf(buf, sizeof(buf), "AFI %s (%u): %s", + snprintf(buf, sizeof(buf), "AFI %s (%u): %s", tok2str(af_values, "Unknown", af), af, (*pfunc)(ndo, tptr+1)); }