X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=decode.c;h=b020b68baab2ea14aedfea89ee202179216ce2c7;hp=707aefb634f79a6f981a6c91e0c031ee56147c45;hb=a23105b12a31ce9f329cf73f5536d003cea9e243;hpb=142b54581d3c819b629ecd2c2dce69dfc4297d30 diff --git a/decode.c b/decode.c index 707aefb..b020b68 100644 --- a/decode.c +++ b/decode.c @@ -30,8 +30,6 @@ static GHashTable *pd_binary_visible = NULL; static GHashTable *pd_channel_maps = NULL; extern struct srd_session *srd_sess; -extern gint opt_loglevel; - static int opts_to_gvar(struct srd_decoder *dec, GHashTable *hash, GHashTable **options) @@ -467,7 +465,7 @@ void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data) show = FALSE; for (l = ann_list; l; l = l->next) { if (GPOINTER_TO_INT(l->data) == -1 - || GPOINTER_TO_INT(l->data) == pda->ann_format) { + || GPOINTER_TO_INT(l->data) == pda->ann_class) { show = TRUE; break; } @@ -486,7 +484,7 @@ void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data) } else { /* Protocol decoder id, annotation class, * all annotation strings. */ - ann_descr = g_slist_nth_data(dec->annotations, pda->ann_format); + ann_descr = g_slist_nth_data(dec->annotations, pda->ann_class); printf(" %s: %s:", pdata->pdo->proto_id, ann_descr[0]); for (i = 0; pda->ann_text[i]; i++) printf(" \"%s\"", pda->ann_text[i]);