diff options
author | Michael Tokarev <mjt@tls.msk.ru> | 2024-01-03 14:37:39 +0300 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-01-08 19:25:14 +0300 |
commit | c0a2b77dd88c29b98a7a51c383b8c3a81340bd80 (patch) | |
tree | 41c0f7f0eb85b8db72ec536c36d24066bb900c63 | |
parent | 0eab8d42e193d176b9e7aaba2fbaf8b556d7fd0f (diff) |
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 <mjt@tls.msk.ru>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
(cherry picked from commit 4ad87cd4b2254197b7ac12e3da824854e6a90f8f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r-- | chardev/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/char.c b/chardev/char.c index b005df3ccf..193bbac054 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; } |