From: songweibin Date: Wed, 11 Sep 2019 02:46:48 +0000 (+0800) Subject: rbd/pybind: fix unsupported format character of %lx X-Git-Tag: v15.1.0~1521^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=083dfbcf672d6eef8cb01ca94a7cf206751de554;p=ceph.git rbd/pybind: fix unsupported format character of %lx Fixes: ``` >>> image.remove_snap2('snap', 1) Traceback (most recent call last): File "", line 1, in File "rbd.pyx", line 3326, in rbd.Image.remove_snap2 (rbd.c:30069) ValueError: unsupported format character 'l' (0x6c) at index 48 >>> ``` Signed-off-by: songweibin --- diff --git a/src/pybind/rbd/rbd.pyx b/src/pybind/rbd/rbd.pyx index fd4341ee1a01..ee24d19b4b08 100644 --- a/src/pybind/rbd/rbd.pyx +++ b/src/pybind/rbd/rbd.pyx @@ -3441,7 +3441,7 @@ cdef class Image(object): with nogil: ret = rbd_snap_remove2(self.image, _name, _flags, prog_cb, NULL) if ret != 0: - raise make_ex(ret, 'error removing snapshot %s from %s with flags %llx' % (name, self.name, flags)) + raise make_ex(ret, 'error removing snapshot %s from %s with flags %lx' % (name, self.name, flags)) def remove_snap_by_id(self, snap_id): """