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
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'])