summaryrefslogtreecommitdiff
path: root/print-m3ua.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-02 17:15:04 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-04 13:47:49 +0200
commitba8936b39b0ce2ff02f3aeb307df4c27657652d8 (patch)
tree71f8f3b775d7adfb7b2be374c634f749525c10eb /print-m3ua.c
parentc45392de183543487bfebf52a5d2ccbeb9cef462 (diff)
downloadtcpdump-ba8936b39b0ce2ff02f3aeb307df4c27657652d8.tar.gz
Print truncations with nd_print_trunc() instead of tstr[] strings
Remove the tstr[] strings. Update the output of some tests accordingly. Moreover: Add or update some ndo_protocol fields.
Diffstat (limited to 'print-m3ua.c')
-rw-r--r--print-m3ua.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/print-m3ua.c b/print-m3ua.c
index a9400397..180b4213 100644
--- a/print-m3ua.c
+++ b/print-m3ua.c
@@ -35,7 +35,6 @@
#include "netdissect.h"
#include "extract.h"
-static const char tstr[] = " [|m3ua]";
#define M3UA_REL_1_0 1
@@ -234,7 +233,7 @@ invalid:
ND_TCHECK_LEN(buf, size);
return;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
}
/*
@@ -282,7 +281,7 @@ invalid:
ND_TCHECK_LEN(buf, size);
return;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
}
/*
@@ -338,6 +337,6 @@ invalid:
ND_TCHECK_LEN(buf, size);
return;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
}