X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sigrok-cli.c;h=805e2199691de50b6c7b20761ef20d91bcd935fa;hb=8630d4a814e95b824b152c1bac3d68640ea3f53e;hp=c42bf899c1ce79f2325233718e6018ec6118e859;hpb=497f5362fe63dc5674ab7146384c9efab35d9e5e;p=sigrok-cli.git diff --git a/sigrok-cli.c b/sigrok-cli.c index c42bf89..805e219 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) @@ -1535,8 +1535,8 @@ int main(int argc, char **argv) if (opt_pds) srd_exit(); - g_option_context_free(context); sr_exit(); + g_option_context_free(context); return 0; }