From 49145a63c73e212e43f1ec901bfb4fe9f99e3caf Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sat, 1 Dec 2012 12:03:45 -0600 Subject: [PATCH] demo: Be more verbose about starting/stopping acquisition This is the first step in fixing the demo driver: figuring out what is being called and what is not _and_ have it show up in the logs. Signed-off-by: Alexandru Gagniuc --- hardware/demo/demo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 8f13b25c..9aa45f85 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -444,6 +444,8 @@ static int hw_dev_acquisition_start(const struct sr_dev_inst *sdi, (void)sdi; + sr_dbg("Starting acquisition."); + /* TODO: 'devc' is never g_free()'d? */ if (!(devc = g_try_malloc(sizeof(struct dev_context)))) { sr_err("%s: devc malloc failed", __func__); @@ -523,6 +525,8 @@ static int hw_dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) devc = sdi->priv; + sr_dbg("Stopping aquisition."); + /* Stop generate thread. */ thread_running = 0;