aboutsummaryrefslogtreecommitdiff
path: root/chardev
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2024-01-03 14:37:39 +0300
committerMichael Tokarev <mjt@tls.msk.ru>2024-01-05 22:28:54 +0300
commit4ad87cd4b2254197b7ac12e3da824854e6a90f8f (patch)
tree3a537d9c9d5a22e3cbee87b2403e5d13668b7527 /chardev
parent5cb0e7abe1635cb82e0033260dac2b910d142f8c (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>
Diffstat (limited to 'chardev')
-rw-r--r--chardev/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/char.c b/chardev/char.c
index 996a024c7a..119b548784 100644
--- a/chardev/char.c
+++ b/chardev/char.c
@@ -518,7 +518,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;
}