summaryrefslogtreecommitdiff
path: root/print-pgm.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-06 10:33:07 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-06 11:26:45 +0200
commit00ecef01d7dd1f53c58ddeb0f906f3ec602283f0 (patch)
treea8a3f3a184b04e8fab889d5730e28e4b6a313003 /print-pgm.c
parent14cab26a1c6af5686f9f4b3605c5540816ab8a41 (diff)
downloadtcpdump-00ecef01d7dd1f53c58ddeb0f906f3ec602283f0.tar.gz
Add more nd_print_trunc() calls
Update the output of some tests accordingly.
Diffstat (limited to 'print-pgm.c')
-rw-r--r--print-pgm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print-pgm.c b/print-pgm.c
index fdab66f8..5b464a8d 100644
--- a/print-pgm.c
+++ b/print-pgm.c
@@ -428,7 +428,7 @@ pgm_print(netdissect_options *ndo,
* make sure there's enough for the first option header
*/
if (!ND_TTEST_LEN(bp, PGM_MIN_OPT_LEN)) {
- ND_PRINT("[|OPT]");
+ nd_print_trunc(ndo);
return;
}
@@ -463,7 +463,7 @@ pgm_print(netdissect_options *ndo,
return;
}
if (!ND_TTEST_2(bp)) {
- ND_PRINT(" [|OPT]");
+ nd_print_trunc(ndo);
return;
}
opt_type = EXTRACT_U_1(bp);
@@ -480,7 +480,7 @@ pgm_print(netdissect_options *ndo,
return;
}
if (!ND_TTEST_LEN(bp, opt_len - 2)) {
- ND_PRINT(" [|OPT]");
+ nd_print_trunc(ndo);
return;
}
@@ -840,7 +840,7 @@ pgm_print(netdissect_options *ndo,
return;
trunc:
- ND_PRINT("[|pgm]");
+ nd_print_trunc(ndo);
if (ch != '\0')
ND_PRINT(">");
}