Commit 6ed0bbce authored by Luca Bigliardi's avatar Luca Bigliardi
Browse files

Fix logging string format



Fix this pylint warning:
[W6501, Mlockall] Specify string format arguments as logging function parameters
Signed-off-by: default avatarLuca Bigliardi <shammash@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 05b35f15
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment