]> sigrok.org Git - libsigrok.git/commitdiff
demo: Be more verbose about starting/stopping acquisition
authorAlexandru Gagniuc <redacted>
Sat, 1 Dec 2012 18:03:45 +0000 (12:03 -0600)
committerUwe Hermann <redacted>
Sat, 1 Dec 2012 21:00:15 +0000 (22:00 +0100)
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 <redacted>
hardware/demo/demo.c

index 8f13b25c7d415ce801bdd50d7838fe5f08f39baa..9aa45f85401f14074e977f029f6b0ea257ff3560 100644 (file)
@@ -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;