From e947e227a2fd904d5617858aeb7e34239efa964d Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 10 Nov 2013 12:55:23 +0100 Subject: [PATCH] Show only the longest PD annotation. --- sigrok-cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigrok-cli.c b/sigrok-cli.c index 740dd6a..3ae7910 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -1352,8 +1352,8 @@ void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data) if (opt_loglevel > SR_LOG_WARN) printf("%"PRIu64"-%"PRIu64" ", pdata->start_sample, pdata->end_sample); printf("%s: ", pdata->pdo->proto_id); - for (i = 0; pda->ann_text[i]; i++) - printf("\"%s\" ", pda->ann_text[i]); + /* Show only the longest annotation. */ + printf("\"%s\" ", pda->ann_text[0]); printf("\n"); fflush(stdout); } -- 2.30.2