return init(o, DEFAULT_BPL_BITS, MODE_BITS);
}
-int data_bits(struct sr_output *o, char *data_in, uint64_t length_in,
- char **data_out, uint64_t *length_out)
+int data_bits(struct sr_output *o, const char *data_in, uint64_t length_in,
+ char **data_out, uint64_t *length_out)
{
struct context *ctx;
unsigned int outsize, offset, p;
char *outbuf, c;
ctx = o->internal;
- max_linelen = MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
+ max_linelen = SR_MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
+ ctx->samples_per_line / 8;
/*
* Calculate space needed for probes. Set aside 512 bytes for
struct sr_output_format output_text_bits = {
"bits",
"Bits (takes argument, default 64)",
- DF_LOGIC,
+ SR_DF_LOGIC,
init_bits,
data_bits,
event,