Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nunojsa committed Feb 12, 2025
1 parent 5f4bb04 commit 585611c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions iiod-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,7 @@ void iiod_client_free_buffer(struct iiod_client_buffer_pdata *pdata)
cmd.dev = (uint8_t) iio_device_get_index(pdata->dev);
cmd.code = pdata->idx;

printf("Execute free buffer\n");
iiod_io_exec_simple_command(io, &cmd);
}

Expand Down
5 changes: 4 additions & 1 deletion iiod/responder.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,8 @@ static void handle_free_buffer(struct parser_pdata *pdata,
if (!dev)
goto out_send_response;

printf("Buffer destroy\n");

buf = get_iio_buffer(pdata, cmd, &buf_entry);
ret = iio_err(buf);
if (ret)
Expand All @@ -574,7 +576,6 @@ static void handle_free_buffer(struct parser_pdata *pdata,

iio_mutex_lock(buflist_lock);

printf("Buffer destroy\n");
SLIST_FOREACH(entry, &bufferlist, entry) {
if (entry != buf_entry)
continue;
Expand Down Expand Up @@ -792,7 +793,9 @@ static void handle_free_block(struct parser_pdata *pdata,
/* TODO: How to handle the error? */
return;
}
printf("Send free block reply(%d)\n", cmd->code >> 16);
iiod_io_send_response_code(io, ret);
printf("Done send free block reply(%d)\n", cmd->code >> 16);
iiod_io_unref(io);
}

Expand Down

0 comments on commit 585611c

Please sign in to comment.