qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 09/20] cryptodev: Remove unnecessary prefix from error message


From: Eduardo Habkost
Subject: [PATCH 09/20] cryptodev: Remove unnecessary prefix from error message
Date: Fri, 30 Oct 2020 16:21:20 -0400

object_property_parse() will add a
  "Property '<TYPE>.<PROP>' can't take value '<VALUE>'"
prefix automatically for us.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
Cc: "Gonglei (Arei)" <arei.gonglei@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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]