]> sigrok.org Git - sigrok-cli.git/commit
decode: Rework logic for text output of protocol decoder annotations
authorGerhard Sittig <redacted>
Sun, 9 Jul 2017 11:44:39 +0000 (13:44 +0200)
committerGerhard Sittig <redacted>
Mon, 31 Jul 2017 17:38:27 +0000 (19:38 +0200)
commite1a352d10076fd2c598befd54a4d6a6b60001eb6
tree47f5e995a938b7b8e0e00ff913c57d2a065df3f1
parent241f9b13e8d5f7de38f1e4762661dc6fc76ead24
decode: Rework logic for text output of protocol decoder annotations

Fold the previous three code paths which formatted text output for
annotations into one code path, which inspects the flags that were
determined before the actual output, and then always formats the fields
in identical ways regardless of why a field is shown.

Remove the assert checks that were introduced in a previous commit. The
logic for the field selection was proven to be identical to the previous
behaviour.
decode.c