]> sigrok.org Git - sigrok-cli.git/commitdiff
Decoder --show output: List decoder tags.
authorUwe Hermann <redacted>
Fri, 15 Mar 2019 13:34:19 +0000 (14:34 +0100)
committerUwe Hermann <redacted>
Fri, 15 Mar 2019 13:34:19 +0000 (14:34 +0100)
show.c

diff --git a/show.c b/show.c
index 73240eed255ac5aaf2638dc73742e522b0f13b02..dbbc63288d7bf11cabea25f721c9032a93001633 100644 (file)
--- a/show.c
+++ b/show.c
@@ -770,6 +770,15 @@ static void show_pd_detail_single(const char *pd)
                } else {
                        printf("None.\n");
                }
+               printf("Decoder tags:\n");
+               if (dec->tags) {
+                       for (l = dec->tags; l; l = l->next) {
+                               str = l->data;
+                               printf("- %s\n", str);
+                       }
+               } else {
+                       printf("None.\n");
+               }
                printf("Annotation classes:\n");
                if (dec->annotations) {
                        for (l = dec->annotations; l; l = l->next) {