]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rados.py: remove lenght modifier 'l' on format string
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 21 Mar 2013 17:43:48 +0000 (18:43 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 21 Mar 2013 17:43:48 +0000 (18:43 +0100)
Remove length modifier 'l' since it's ignored for python.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/pybind/rados.py

index 6a418de0ef32004dec546a4d1f27dc80a3f6ed4e..857a17cad130c46fa2833f4373d6c3de58479e32 100755 (executable)
@@ -562,7 +562,7 @@ class Ioctx(object):
         ret = self.librados.rados_ioctx_pool_set_auid(self.io, \
                 ctypes.c_uint64(auid))
         if ret < 0:
-            raise make_ex(ret, "error changing auid of '%s' to %lld" %\
+            raise make_ex(ret, "error changing auid of '%s' to %d" %\
                 (self.name, auid))
 
     def set_locator_key(self, loc_key):
@@ -595,7 +595,7 @@ class Ioctx(object):
             raise make_ex(ret, "Ioctx.write(%s): failed to write %s" % \
                 (self.name, key))
         elif ret < length:
-            raise IncompleteWriteError("Wrote only %ld out of %ld bytes" % \
+            raise IncompleteWriteError("Wrote only %d out of %d bytes" % \
                 (ret, length))
         else:
             raise LogicError("Ioctx.write(%s): rados_write \