]> sigrok.org Git - sigrok-cli.git/blobdiff - sigrok-cli.c
Show only the longest PD annotation.
[sigrok-cli.git] / 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);
 }