object_property_parse() will add a "Property '<TYPE>.<PROP>' can't take value '<VALUE>'" prefix automatically for us.
Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> --- Cc: "Gonglei (Arei)" <arei.gong...@huawei.com> Cc: qemu-devel@nongnu.org --- backends/cryptodev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backends/cryptodev.c b/backends/cryptodev.c index 3f141f61ed..e3cd90619c 100644 --- a/backends/cryptodev.c +++ b/backends/cryptodev.c @@ -160,8 +160,7 @@ cryptodev_backend_set_queues(Object *obj, Visitor *v, const char *name, return; } if (!value) { - error_setg(errp, "Property '%s.%s' doesn't take value '%" PRIu32 "'", - object_get_typename(obj), name, value); + error_setg(errp, "queues can't be zero"); return; } backend->conf.peers.queues = value; -- 2.28.0