chardev/char.c: fix "abstract device type" error message
PATCH 1/1 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.
Signed-off-by Michael Tokarev <[email protected]>
Fixes 777357d758d9 "chardev: qom-ify" (2016-12-07)
--- chardev/char.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
chardev/char.c +1 -1
@@ -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 ; }
Signature · 1 line
2.39.2
Quoted 8 lines · Michael Tokarev
Date: Wed, 3 Jan 2024 14:42:21 +0300
From: Michael Tokarev <[email protected]>
Subject: [PATCH trivial]chardev/char.c: fix "abstract device type" error
message
X-Mailer: git-send-email 2.39.2Current error message:
Quoted 8 lines
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.
Signed-off-by Michael Tokarev <[email protected]>Fixes 777357d758d9 "chardev: qom-ify" (2016-12-07)---
Reviewed-by Zhao Liu <[email protected]>
Quoted 20 lines
chardev/char.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)chardev/char.c +1
-1@@ -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 ; }Signature · 1 line
2.39.2