From: Michael Tokarev Date: Wed, 3 Jan 2024 11:37:39 +0000 (+0300) Subject: chardev/char.c: fix "abstract device type" error message X-Git-Tag: v7.2.9~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0a2b77dd88c29b98a7a51c383b8c3a81340bd80;p=thirdparty%2Fqemu.git chardev/char.c: fix "abstract device type" error message Current error message: qemu-system-x86_64: -chardev spice,id=foo: Parameter 'driver' expects an abstract device type while in fact the meaning is in reverse, -chardev expects a non-abstract device type. Fixes: 777357d758d9 ("chardev: qom-ify" 2016-12-07) Signed-off-by: Michael Tokarev Reviewed-by: Zhao Liu (cherry picked from commit 4ad87cd4b2254197b7ac12e3da824854e6a90f8f) Signed-off-by: Michael Tokarev --- diff --git a/chardev/char.c b/chardev/char.c index b005df3ccf9..193bbac054e 100644 --- a/chardev/char.c +++ b/chardev/char.c @@ -519,7 +519,7 @@ static const ChardevClass *char_get_class(const char *driver, Error **errp) if (object_class_is_abstract(oc)) { error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "driver", - "an abstract device type"); + "a non-abstract device type"); return NULL; }