aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/msgproto.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-09-27 11:43:14 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-09-27 12:38:20 -0400
commit8d5a9143bb550966c0b43ee4624c49bfaaa55a8c (patch)
tree96ba26d0673d364f89b4148a232f22855eba70fc /klippy/msgproto.py
parent8f8951b4c1caf9bf5667a22b146ba22d184208e1 (diff)
downloadkutter-8d5a9143bb550966c0b43ee4624c49bfaaa55a8c.tar.gz
kutter-8d5a9143bb550966c0b43ee4624c49bfaaa55a8c.tar.xz
kutter-8d5a9143bb550966c0b43ee4624c49bfaaa55a8c.zip
klippy: Avoid using '%' syntax when calling logging module
The logging module can build strings directly from printf syntax - no need to build the string first. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/msgproto.py')
-rw-r--r--klippy/msgproto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/msgproto.py b/klippy/msgproto.py
index 135ff358..40138346 100644
--- a/klippy/msgproto.py
+++ b/klippy/msgproto.py
@@ -208,7 +208,7 @@ class MessageParser:
msgcrc = s[msglen-MESSAGE_TRAILER_CRC:msglen-MESSAGE_TRAILER_CRC+2]
crc = crc16_ccitt(s[:msglen-MESSAGE_TRAILER_SIZE])
if crc != msgcrc:
- #logging.debug("got crc %s vs %s" % (repr(crc), repr(msgcrc)))
+ #logging.debug("got crc %s vs %s", repr(crc), repr(msgcrc))
return -1
return msglen
def dump(self, s):