From ba8936b39b0ce2ff02f3aeb307df4c27657652d8 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Wed, 2 May 2018 17:15:04 +0200 Subject: 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. --- print-rpki-rtr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'print-rpki-rtr.c') diff --git a/print-rpki-rtr.c b/print-rpki-rtr.c index fcc2f1c2..38f1e051 100644 --- a/print-rpki-rtr.c +++ b/print-rpki-rtr.c @@ -31,7 +31,6 @@ #include "extract.h" #include "addrtoname.h" -static const char tstr[] = "[|RPKI-RTR]"; /* * RPKI/Router PDU header @@ -381,7 +380,7 @@ invalid: ND_TCHECK_LEN(tptr, len); return len; trunc: - ND_PRINT("\n\t%s", tstr); + nd_print_trunc(ndo); return len; } -- cgit v1.2.1