#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.
*/
return cp + header_len + body_len_declared;
trunc:
- printf(" [|zmtp1]");
+ printf("%s", tstr);
return ep;
}
TCHECK2(*cp, 2);
frame_offset = EXTRACT_16BITS(cp);
- printf("\n\t frame offset 0x%04"PRIx16"", frame_offset);
+ printf("\n\t frame offset 0x%04x", frame_offset);
cp += 2;
remaining_len = snapend - cp; /* without the frame length */
return cp + frame_offset;
trunc:
- printf(" [|zmtp1]");
+ printf("%s", tstr);
return cp + len;
}