]> sigrok.org Git - sigrok-cli.git/blobdiff - show.c
README: Bump libsigrokdecode requirement to >= 0.6.0.
[sigrok-cli.git] / show.c
diff --git a/show.c b/show.c
index 533ab1e55d8c65a3d4277c2d9ce105f1e66a2482..dbbc63288d7bf11cabea25f721c9032a93001633 100644 (file)
--- a/show.c
+++ b/show.c
@@ -321,7 +321,8 @@ void show_dev_detail(void)
        GVariant *gvar_dict, *gvar_list, *gvar;
        gsize num_elements;
        double dlow, dhigh, dcur_low, dcur_high;
-       const uint64_t *uint64, p = 0, q = 0, low = 0, high = 0;
+       const uint64_t *uint64;
+       uint64_t p = 0, q = 0, low = 0, high = 0;
        uint64_t tmp_uint64, mask, cur_low, cur_high, cur_p, cur_q;
        GArray *opts;
        const int32_t *int32;
@@ -769,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) {