From 6596b02ada9539786368751f2892656e87cc9bb3 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 25 Sep 2018 20:54:50 +0200 Subject: [PATCH] uldaq: add debugging --- lib/nodes/uldaq.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/nodes/uldaq.c b/lib/nodes/uldaq.c index 32a6a8eb1..e60b850f8 100644 --- a/lib/nodes/uldaq.c +++ b/lib/nodes/uldaq.c @@ -477,8 +477,12 @@ int uldaq_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *re smp->signals = &n->signals; smp->sequence = start_index / u->in.channel_count; smp->flags = SAMPLE_HAS_SEQUENCE | SAMPLE_HAS_DATA; + + debug(2, "sequence no: %zu", smp->sequence); } + debug(2, "cnt: %u", cnt); + pthread_mutex_unlock(&u->in.mutex); return cnt;