From db7dc9e9fc8e4b81544700b61de349029cb728f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Tue, 27 Aug 2024 16:34:58 -0700 Subject: [PATCH] Use single dash -device option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems odd to use --device in some places and -device in others. It's also not in line with our usage of other Qemu options, which all use a single dash (for better or worse). Change --device to -device for consistency. Signed-off-by: Daniel Müller --- src/qemu.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu.rs b/src/qemu.rs index ceea26b..ecbac90 100644 --- a/src/qemu.rs +++ b/src/qemu.rs @@ -428,7 +428,7 @@ fn kernel_args( fn virtio_serial_args(host_sock: &Path) -> Vec { let mut args: Vec = Vec::new(); - args.push("--device".into()); + args.push("-device".into()); args.push("virtio-serial".into()); args.push("-chardev".into()); @@ -438,7 +438,7 @@ fn virtio_serial_args(host_sock: &Path) -> Vec { arg.push(",server=on,wait=off,id=cmdout"); args.push(arg); - args.push("--device".into()); + args.push("-device".into()); arg = OsString::new(); arg.push("virtserialport,chardev=cmdout,name="); arg.push(COMMAND_OUTPUT_PORT_NAME);