From 8d5a9143bb550966c0b43ee4624c49bfaaa55a8c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 27 Sep 2017 11:43:14 -0400 Subject: 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 --- klippy/msgproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/msgproto.py') 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): -- cgit v1.2.3-70-g09d2