]> sigrok.org Git - sigrok-cli.git/blobdiff - show.c
Decoder --show output: List decoder tags.
[sigrok-cli.git] / 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) {