diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2016-10-16 18:25:29 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2016-11-02 18:43:36 +0100 |
commit | 6069768266f3bdd8cddd64ba33666f05e7fff55b (patch) | |
tree | 3229a511bd7e5e79bb3379d054a207dc0324d6f6 /decoders/jtag | |
parent | af21ec73e2bf2a6aaec758b090902e7cf3ab96ad (diff) | |
download | libsigrokdecode-6069768266f3bdd8cddd64ba33666f05e7fff55b.tar.gz libsigrokdecode-6069768266f3bdd8cddd64ba33666f05e7fff55b.zip |
Print error messages when decoders fail load time checks
Several checks get applied when loading externally provided protocol
decoders. Print error messages when checks fail, so that developers can
better resolve issues.
The sequence of tests terminates upon the first failed check, while
decoders may suffer from several issues at the same time. This is
considered acceptable, as it reduces the commit's size and the code's
complexity. This commit only adds error messages, and does not change
logic/behaviour.
Failed API version checks result in two messages: One specific message
which reflects the decoder's version and what's supported by the loader,
and a generic message that the API version check has failed. This is
done to simplify the logic of a rarely used error code path.
This commit addresses libsigrokdecode Bug 704, and allows to identify
decoders from parallel installations of differing version.
This fixes bug #704.
Signed-off-by: Gerhard Sittig <gerhard.sittig@gmx.net>
Diffstat (limited to 'decoders/jtag')
0 files changed, 0 insertions, 0 deletions