]> sigrok.org Git - sigrok-cli.git/commitdiff
Show only the longest PD annotation.
authorBert Vermeulen <redacted>
Sun, 10 Nov 2013 11:55:23 +0000 (12:55 +0100)
committerBert Vermeulen <redacted>
Fri, 15 Nov 2013 21:06:27 +0000 (22:06 +0100)
sigrok-cli.c

index 740dd6a4dcc7cab548e1f78fb0527f099a78a8a1..3ae791074d71a95648b82502612b2587e6340460 100644 (file)
@@ -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);
 }