summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-05-23 01:09:49 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2012-05-23 01:09:49 +0200
commit080243a8224c8453c4993ad22f5bdc63e1dba2de (patch)
treeae6de587a9bf5627ccb17c42901f711bc4ae7c5c /decoders
parent4a583ba42431fa2031a6bf39b249e4902973833d (diff)
downloadlibsigrokdecode-080243a8224c8453c4993ad22f5bdc63e1dba2de.tar.gz
libsigrokdecode-080243a8224c8453c4993ad22f5bdc63e1dba2de.zip
srd: onewire: Fix %d and %s mismatch.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/onewire/onewire.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/onewire/onewire.py b/decoders/onewire/onewire.py
index 22ad7ee..7fb1325 100644
--- a/decoders/onewire/onewire.py
+++ b/decoders/onewire/onewire.py
@@ -133,7 +133,7 @@ class Decoder(srd.Decoder):
if (self.lnk_bit) : self.lnk_state = 'WAIT FOR FALLING EDGE'
else : self.lnk_state = 'WAIT FOR RISING EDGE'
else:
- raise Exception('Invalid lnk_state: %d' % self.lnk_state)
+ raise Exception('Invalid lnk_state: %s' % self.lnk_state)
# Network layer
@@ -177,9 +177,9 @@ class Decoder(srd.Decoder):
#
break
else:
- raise Exception('Invalid net_state: %d' % self.net_state)
+ raise Exception('Invalid net_state: %s' % self.net_state)
elif not (self.lnk_event == "NONE"):
- raise Exception('Invalid net_event: %d' % self.net_event)
+ raise Exception('Invalid net_event: %s' % self.net_event)