diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2017-06-06 00:08:07 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-06-06 00:08:07 +0200 |
commit | c1ac6ddafd8c836a2e50e3c0c8586245a78ea9a0 (patch) | |
tree | df2ac7ae6506820fb17059d4bf26d1456d26c152 /decoder | |
parent | 640aa0bc662ebe323f94815e80614beb72a952fa (diff) | |
download | sigrok-test-c1ac6ddafd8c836a2e50e3c0c8586245a78ea9a0.tar.gz sigrok-test-c1ac6ddafd8c836a2e50e3c0c8586245a78ea9a0.zip |
Fix issue in -s output.
Option values are strings, not numbers.
This fixes:
$ ./decoder/pdtest -s jitter
Testcase: jitter/toim4243
Protocol decoder: jitter
Channel clk=3
Channel sig=2
Error: %d format: a number is required, not str
Diffstat (limited to 'decoder')
-rwxr-xr-x | decoder/pdtest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/pdtest b/decoder/pdtest index 4c15f3d..1cc071f 100755 --- a/decoder/pdtest +++ b/decoder/pdtest @@ -485,7 +485,7 @@ def show_tests(tests): for label, channel in pd['channels']: print(" Channel %s=%d" % (label, channel)) for option, value in pd['options']: - print(" Option %s=%d" % (option, value)) + print(" Option %s=%s" % (option, value)) if 'stack' in tc: print(" Stack: %s" % ' '.join(tc['stack'])) print(" Input: %s" % tc['input']) |