From: Danny Al-Gaaf Date: Thu, 21 Mar 2013 17:43:48 +0000 (+0100) Subject: rados.py: remove lenght modifier 'l' on format string X-Git-Tag: v0.62~194^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=94966222556858a6a53c20df8bddb1dcf904ef9b;p=ceph.git rados.py: remove lenght modifier 'l' on format string Remove length modifier 'l' since it's ignored for python. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/pybind/rados.py b/src/pybind/rados.py index 6a418de0ef32..857a17cad130 100755 --- a/src/pybind/rados.py +++ b/src/pybind/rados.py @@ -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 \