From: Bert Vermeulen Date: Thu, 9 May 2013 11:49:37 +0000 (+0200) Subject: Fix error message and compiler warning X-Git-Tag: sigrok-cli-0.5.0~91 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7d559a46968ca2fa651f518d44aa5ca5ce01e568;p=sigrok-cli.git Fix error message and compiler warning Thanks to Christian Deussen for the patch. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index d400c7d..05ac6c1 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -347,7 +347,7 @@ static void show_dev_detail(void) num_devices = g_slist_length(devices); if (num_devices > 1) { - g_critical("%d devices found. Use --list-devices to show them, " + g_critical("%d devices found. Use --scan to show them, " "and select one to show.", num_devices); return; } @@ -677,7 +677,6 @@ static void datafeed_in(const struct sr_dev_inst *sdi, static FILE *outfile = NULL; GSList *l; GString *out; - GVariant *gvar; int sample_size, ret; uint64_t samplerate, output_len, filter_out_len; uint8_t *output_buf, *filter_out; @@ -729,6 +728,7 @@ static void datafeed_in(const struct sr_dev_inst *sdi, unitsize = (logic_probelist->len + 7) / 8; #ifdef HAVE_SRD + GVariant *gvar; if (opt_pds && logic_probelist->len) { if (sr_config_get(sdi->driver, SR_CONF_SAMPLERATE, &gvar, sdi) != SR_OK) {