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/chelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/chelper.py') diff --git a/klippy/chelper.py b/klippy/chelper.py index 1f09e72d..7d950ab8 100644 --- a/klippy/chelper.py +++ b/klippy/chelper.py @@ -90,7 +90,7 @@ def check_build_code(srcdir, target, sources, cmd, other_files=[]): src_times = get_mtimes(srcdir, sources + other_files) obj_times = get_mtimes(srcdir, [target]) if not obj_times or max(src_times) > min(obj_times): - logging.info("Building C code module %s" % (target,)) + logging.info("Building C code module %s", target) srcfiles = [os.path.join(srcdir, fname) for fname in sources] destlib = os.path.join(srcdir, target) os.system(cmd % (destlib, ' '.join(srcfiles))) -- cgit v1.2.3-70-g09d2