if (stats->total_ts_seen != cp->count)
continue;
/* First occurance of that timestamp count. Check the value. */
- sr_dbg("TS early chk: total %" PRIu64 ", min delta %zu / %zu.",
+ sr_dbg("TS early chk: total %zu, min delta %" PRIu64 " / %" PRIu64 ".",
cp->count, seen_delta, check_delta);
if (check_delta < cp->delta)
return;
} else if (is_real || is_int) {
ch_type = SR_CHANNEL_ANALOG;
} else {
- sr_info("Unsupported signal type: '%s'", type);
+ sr_err("Unsupported signal type: '%s'", type);
g_strfreev(parts);
return SR_ERR_DATA;
}
inc = in->priv;
/* Create one feed for logic data. */
- inc->unit_size = (inc->logic_count + 7) / 8;
- inc->feed_logic = feed_queue_logic_alloc(in->sdi,
- CHUNK_SIZE / inc->unit_size, inc->unit_size);
+ if (inc->logic_count) {
+ inc->unit_size = (inc->logic_count + 7) / 8;
+ inc->feed_logic = feed_queue_logic_alloc(in->sdi,
+ CHUNK_SIZE / inc->unit_size, inc->unit_size);
+ }
/* Create one feed per analog channel. */
for (l = inc->channels; l; l = l->next) {