]> git.proxmox.com Git - mirror_qemu.git/commitdiff
chardev/char.c: fix "abstract device type" error message
authorMichael Tokarev <mjt@tls.msk.ru>
Wed, 3 Jan 2024 11:37:39 +0000 (14:37 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 5 Jan 2024 19:28:54 +0000 (22:28 +0300)
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>
chardev/char.c

index 996a024c7a2cdb9f59e13d92c4da15fc2cf0acdb..119b54878415968d07c5f3eb57cd150df3633a43 100644 (file)
@@ -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",
-                   "aabstract device type");
+                   "a non-abstract device type");
         return NULL;
     }