From: Uwe Hermann Date: Mon, 5 Jun 2017 22:08:07 +0000 (+0200) Subject: Fix issue in -s output. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c1ac6ddafd8c836a2e50e3c0c8586245a78ea9a0;p=sigrok-test.git 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 --- 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'])