X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/07a7f33ba3ff346b9ce31772645a06980baca907..b5fbb1f40aa51e0f40c7d7cf3b6ee88ec41e2981:/print-openflow-1.0.c?ds=sidebyside diff --git a/print-openflow-1.0.c b/print-openflow-1.0.c index 048031aa..4cf766bc 100644 --- a/print-openflow-1.0.c +++ b/print-openflow-1.0.c @@ -700,7 +700,7 @@ vlan_str(const uint16_t vid) if (vid == OFP_VLAN_NONE) return "NONE"; - nd_snprintf(buf, sizeof(buf), "%u%s", vid, + snprintf(buf, sizeof(buf), "%u%s", vid, (vid > 0 && vid < 0x0fff) ? "" : " (bogus)"); return buf; } @@ -709,7 +709,7 @@ static const char * pcp_str(const uint8_t pcp) { static char buf[sizeof("255 (bogus)")]; - nd_snprintf(buf, sizeof(buf), "%u%s", pcp, + snprintf(buf, sizeof(buf), "%u%s", pcp, pcp <= 7 ? "" : " (bogus)"); return buf; }