As we're always printing "LLDP, length XXX", don't do it for the system name.

This commit is contained in:
Guy Harris 2012-06-30 16:10:40 -07:00
parent 53343822c5
commit d16e61a7f3

View File

@ -1320,14 +1320,8 @@ lldp_print(register const u_char *pptr, register u_int len) {
* The system name is also print in non-verbose mode
* similar to the CDP printer.
*/
if (vflag) {
printf(": ");
safeputs((const char *)tptr, tlv_len);
} else {
printf("LLDP, name ");
safeputs((const char *)tptr, tlv_len);
printf(", length %u", len);
}
printf(": ");
safeputs((const char *)tptr, tlv_len);
break;
case LLDP_SYSTEM_DESCR_TLV: