X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=sigrok-cli.c;h=05ac6c1e245021511993f3ab24cbc76082bb53c5;hp=d400c7dce3e35fd55895d7d1cb8dcac350991e9e;hb=7d559a46968ca2fa651f518d44aa5ca5ce01e568;hpb=17982bc9679dffb9dadf684586bf67703e007c79 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) {