diff --git a/src/pybind/rbd/rbd.pyx b/src/pybind/rbd/rbd.pyx index fd4341ee1a0..ee24d19b4b0 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): """