Skip to content

Commit

Permalink
test_5
Browse files Browse the repository at this point in the history
  • Loading branch information
nunojsa committed Feb 5, 2025
1 parent 7e8faa6 commit abdb945
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iiod/responder.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ static int buffer_enqueue_block(void *priv, void *d)
if (entry->cyclic)
goto out_send_response;

printf("Add to dequeue tash Enqueued block, (%p): %u\n",
entry, entry->idx);
ret = iio_task_enqueue_autoclear(buffer->dequeue_task, entry);
if (ret)
goto out_send_response;
Expand All @@ -320,7 +322,7 @@ static int buffer_dequeue_block(void *priv, void *d)
unsigned int nb_data = 0;
intptr_t ret;

printf("Dequeue block, %u\n", entry->idx);
printf("Dequeue block, (%p): %u\n", entry, entry->idx);
ret = iio_block_dequeue(entry->block, false);
if (ret < 0)
goto out_send_response;
Expand All @@ -344,6 +346,7 @@ static int buffer_dequeue_block(void *priv, void *d)
}

out_send_response:
printf("Dequeue block(%u) send response\n", entry->idx);
iiod_io_send_response(entry->io, ret, &data, nb_data);
return 0;
}
Expand Down

0 comments on commit abdb945

Please sign in to comment.