X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/feb50f848364f748a2d5f31f9e65d50df37a0bcf..47fc89d711eec0a073d9b3b293a1af901b5bd791:/print-zeromq.c diff --git a/print-zeromq.c b/print-zeromq.c index b957b9b8..c40ed3b8 100644 --- a/print-zeromq.c +++ b/print-zeromq.c @@ -39,6 +39,8 @@ #include "interface.h" #include "extract.h" +static const char tstr[] = " [|zmtp1]"; + /* Maximum number of ZMTP/1.0 frame body bytes (without the flags) to dump in * hex and ASCII under a single "-v" flag. */ @@ -133,7 +135,7 @@ zmtp1_print_frame(const u_char *cp, const u_char *ep) { return cp + header_len + body_len_declared; trunc: - printf(" [|zmtp1]"); + printf("%s", tstr); return ep; } @@ -200,7 +202,7 @@ zmtp1_print_intermediate_part(const u_char *cp, const u_int len) { return cp + frame_offset; trunc: - printf(" [|zmtp1]"); + printf("%s", tstr); return cp + len; }