summaryrefslogtreecommitdiff
path: root/print-ldp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-02-13 23:00:48 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-02-13 23:00:55 +0100
commitc1b92ea1d4f508c72b1ffe8e08eb766ac39c7018 (patch)
tree205246f6f4b6ceb2880d221362482729b8523cc1 /print-ldp.c
parent67f87a772e27158784e2770162ee0f48f1b21649 (diff)
downloadtcpdump-c1b92ea1d4f508c72b1ffe8e08eb766ac39c7018.tar.gz
Add and use tstr[]
Update the output of some tests accordingly.
Diffstat (limited to 'print-ldp.c')
-rw-r--r--print-ldp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/print-ldp.c b/print-ldp.c
index 2803aa33..1e1f1b67 100644
--- a/print-ldp.c
+++ b/print-ldp.c
@@ -29,6 +29,8 @@
#include "l2vpn.h"
#include "af.h"
+static const char tstr[] = " [|ldp]";
+
/*
* ldp common header
*
@@ -534,7 +536,7 @@ ldp_tlv_print(netdissect_options *ndo,
return(tlv_len+4); /* Type & Length fields not included */
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
return 0;
badtlv:
@@ -686,7 +688,7 @@ ldp_pdu_print(netdissect_options *ndo,
}
return pdu_len+4;
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
return 0;
}