summaryrefslogtreecommitdiff
path: root/print-lmp.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-lmp.c
parent67f87a772e27158784e2770162ee0f48f1b21649 (diff)
downloadtcpdump-c1b92ea1d4f508c72b1ffe8e08eb766ac39c7018.tar.gz
Add and use tstr[]
Update the output of some tests accordingly.
Diffstat (limited to 'print-lmp.c')
-rw-r--r--print-lmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/print-lmp.c b/print-lmp.c
index bb7d9ae2..6e3f9810 100644
--- a/print-lmp.c
+++ b/print-lmp.c
@@ -31,6 +31,8 @@
#include "addrtoname.h"
#include "gmpls.h"
+static const char tstr[] = " [|lmp]";
+
/*
* LMP common header
*
@@ -1131,7 +1133,7 @@ lmp_print(netdissect_options *ndo,
}
return;
trunc:
- ND_PRINT("\n\t\t packet exceeded snapshot");
+ ND_PRINT("%s", tstr);
}
/*
* Local Variables: