summaryrefslogtreecommitdiff
path: root/decoders/ds243x/pd.py
diff options
context:
space:
mode:
authorRyan Jarvis <ryan@shopboxretail.com>2019-01-18 23:49:47 -0800
committerUwe Hermann <uwe@hermann-uwe.de>2019-01-30 00:08:39 +0100
commit2eeca7bd81d1d8c9c82e33d1896f081a9a095363 (patch)
treee50db8bffd99bf15e7403a7519f08fbaed6e7c65 /decoders/ds243x/pd.py
parent5cae425270c1cf119591b9885cd212fa9c5ca7c6 (diff)
downloadlibsigrokdecode-2eeca7bd81d1d8c9c82e33d1896f081a9a095363.tar.gz
libsigrokdecode-2eeca7bd81d1d8c9c82e33d1896f081a9a095363.zip
Fix obvious typos with string formatters
Diffstat (limited to 'decoders/ds243x/pd.py')
-rw-r--r--decoders/ds243x/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/ds243x/pd.py b/decoders/ds243x/pd.py
index c7869a8..c93395d 100644
--- a/decoders/ds243x/pd.py
+++ b/decoders/ds243x/pd.py
@@ -110,7 +110,7 @@ class Decoder(srd.Decoder):
self.family, self.commands = family_codes[val & 0xff]
s = 'is 0x%02x, %s detected' % (self.family_code, self.family)
else:
- s = '%x%02x unknown' % (self.family_code)
+ s = '0x%02x unknown' % (self.family_code)
self.putx([0, ['ROM: 0x%016x (%s)' % (val, 'family code ' + s),
'ROM: 0x%016x (%s)' % (val, self.family)]])