]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildChrChardevStr: Directly generate command line
authorPeter Krempa <pkrempa@redhat.com>
Thu, 4 Nov 2021 12:59:47 +0000 (13:59 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 10 Dec 2021 15:37:42 +0000 (16:37 +0100)
commitcf2d64cc277299899298a634b315f95601c975ca
tree034443140a648bb584f4187cee8ebbe6328c4e07
parentdc3f02561713eebc58d2ee138308683f9d3248e9
qemuBuildChrChardevStr: Directly generate command line

'qemuBuildChrChardevStr' used a hybrid approach where some arguments
were directly added to '@cmd' while the commandline itself was returned
as a string.

This patch renames qemuBuildChrChardevStr to qemuBuildChardevCommand
and adds the argument directly to @cmd inside the function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c