From: Bert Vermeulen Date: Sun, 14 Oct 2012 12:58:30 +0000 (+0200) Subject: more compact display of probe list X-Git-Tag: sigrok-cli-0.4.0~74 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4d326ca137ed1326ccba043929544d65a7d54ccb;p=sigrok-cli.git more compact display of probe list --- diff --git a/sigrok-cli.c b/sigrok-cli.c index c42bf89..d1544ac 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -256,16 +256,16 @@ static void print_dev_line(const struct sr_dev_inst *sdi) if (sdi->probes) { if (g_slist_length(sdi->probes) == 1) { probe = sdi->probes->data; - printf("with 1 probe: %s\n", probe->name); + printf("with 1 probe: %s", probe->name); } else { - printf("with %d probes:\n", g_slist_length(sdi->probes)); + printf("with %d probes:", g_slist_length(sdi->probes)); for (l = sdi->probes; l; l = l->next) { probe = l->data; - printf(" %s\n", probe->name); + printf(" %s", probe->name); } } - } else - printf("\n"); + } + printf("\n"); } static void show_dev_list(void)