Fix logging arguments formatting
authorIustin Pop <iustin@google.com>
Fri, 1 Feb 2013 09:21:12 +0000 (10:21 +0100)
committerIustin Pop <iustin@google.com>
Fri, 1 Feb 2013 10:01:14 +0000 (11:01 +0100)
This fixes: “ganeti/hypervisor/hv_kvm.py:93: [W1201, _GetTunFeatures]
Specify string format arguments as logging function parameters”, and
also updates the copyright years.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>

lib/hypervisor/hv_kvm.py

index bf39d57..8d7f9f1 100644 (file)
@@ -1,7 +1,7 @@
 #
 #
 
-# Copyright (C) 2008, 2009, 2010, 2011, 2012 Google Inc.
+# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Google Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -90,7 +90,7 @@ def _GetTunFeatures(fd, _ioctl=fcntl.ioctl):
   try:
     buf = _ioctl(fd, TUNGETFEATURES, req)
   except EnvironmentError, err:
-    logging.warning("ioctl(TUNGETFEATURES) failed: %s" % err)
+    logging.warning("ioctl(TUNGETFEATURES) failed: %s", err)
     return None
   else:
     (flags, ) = struct.unpack("I", buf)