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: Jason Wang <jasow...@redhat.com>
Cc: qemu-devel@nongnu.org
---
 net/dump.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net/dump.c b/net/dump.c
index 7fd448d2e1..16c4fa1588 100644
--- a/net/dump.c
+++ b/net/dump.c
@@ -197,8 +197,7 @@ static void filter_dump_set_maxlen(Object *obj, Visitor *v, 
const char *name,
         return;
     }
     if (value == 0) {
-        error_setg(errp, "Property '%s.%s' doesn't take value '%u'",
-                   object_get_typename(obj), name, value);
+        error_setg(errp, "maxlen can't be zero");
         return;
     }
     nfds->maxlen = value;
-- 
2.28.0


Reply via email to