]> The Tcpdump Group git mirrors - tcpdump/commitdiff
don't call bittok2str() twice in a printf() statement, fix typo (cc_values vs cv_values)
authorhannes <hannes>
Tue, 19 Apr 2005 20:17:49 +0000 (20:17 +0000)
committerhannes <hannes>
Tue, 19 Apr 2005 20:17:49 +0000 (20:17 +0000)
print-ldp.c

index c7fb68d43678eee735a35363d70ced61c109c51a..b974f1d7d4c5dbd7c5f0c7c7f99239e7f5a0350d 100644 (file)
@@ -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: