diff options
author | hannes <hannes> | 2005-04-19 20:17:49 +0000 |
---|---|---|
committer | hannes <hannes> | 2005-04-19 20:17:49 +0000 |
commit | 9e20fcfb91283ebf2c7bcd15e8eb460c663c25aa (patch) | |
tree | b8551c8c7b0b7cf4c6d1762815ce53cd60129981 /print-ldp.c | |
parent | 3be3299894fe57301132fe4be7b046242787c917 (diff) | |
download | tcpdump-9e20fcfb91283ebf2c7bcd15e8eb460c663c25aa.tar.gz |
don't call bittok2str() twice in a printf() statement, fix typo (cc_values vs cv_values)
Diffstat (limited to 'print-ldp.c')
-rw-r--r-- | print-ldp.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/print-ldp.c b/print-ldp.c index c7fb68d4..b974f1d7 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -16,7 +16,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-ldp.c,v 1.9 2005-04-19 19:41:02 hannes Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ldp.c,v 1.10 2005-04-19 20:17:49 hannes Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -384,9 +384,12 @@ ldp_tlv_print(register const u_char *tptr) { break; case LDP_FEC_MARTINI_IFPARM_VCCV: - printf("\n\t\t Control Channel Flags [%s]\n\t\t CV Types [%s]", - bittok2str(ldp_fec_martini_ifparm_vccv_cc_values,"none",*tptr+2), - bittok2str(ldp_fec_martini_ifparm_vccv_cc_values,"none",*tptr+3)); + printf("\n\t\t Control Channels (0x%02x) = [%s]", + *(tptr+2), + bittok2str(ldp_fec_martini_ifparm_vccv_cc_values,"none",*(tptr+2))); + printf("\n\t\t CV Types (0x%02x) = [%s]", + *(tptr+3), + bittok2str(ldp_fec_martini_ifparm_vccv_cv_values,"none",*(tptr+3))); break; default: |