From 6ed0bbce33b8a134d0e22dd72fd111e07fc9bef9 Mon Sep 17 00:00:00 2001
From: Luca Bigliardi <shammash@google.com>
Date: Thu, 13 May 2010 16:33:04 +0100
Subject: [PATCH] Fix logging string format

Fix this pylint warning:
[W6501, Mlockall] Specify string format arguments as logging function parameters

Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 lib/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/utils.py b/lib/utils.py
index 4484085a1..cdb02bf77 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -1772,7 +1772,7 @@ def Mlockall():
   libc.__errno_location.restype = ctypes.POINTER(ctypes.c_int)
 
   if libc.mlockall(_MCL_CURRENT | _MCL_FUTURE):
-    logging.error("Cannot set memory lock: %s" %
+    logging.error("Cannot set memory lock: %s",
                   os.strerror(libc.__errno_location().contents.value))
     return
 
-- 
GitLab