]> sigrok.org Git - libsigrok.git/blobdiff - output/text/bits.c
output/binary: Use new output API.
[libsigrok.git] / output / text / bits.c
index af3196925281977a03d734a90e699ecbbffd851e..4ab59253fb4fb85285bfee84b5e1dd2dd34048fd 100644 (file)
@@ -43,10 +43,10 @@ SR_PRIV int data_bits(struct sr_output *o, const uint8_t *data_in,
        uint8_t *outbuf, c;
 
        ctx = o->internal;
-       max_linelen = SR_MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
+       max_linelen = SR_MAX_CHANNELNAME_LEN + 3 + ctx->samples_per_line
                        + ctx->samples_per_line / 8;
         /*
-         * Calculate space needed for probes. Set aside 512 bytes for
+         * Calculate space needed for channels. Set aside 512 bytes for
          * extra output, e.g. trigger.
          */
        outsize = 512 + (1 + (length_in / ctx->unitsize) / ctx->samples_per_line)