Skip to content

Commit

Permalink
Use single dash -device option
Browse files Browse the repository at this point in the history
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 <deso@posteo.net>
  • Loading branch information
d-e-s-o authored and danobi committed Aug 28, 2024
1 parent 17b9fb6 commit db7dc9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ fn kernel_args(
fn virtio_serial_args(host_sock: &Path) -> Vec<OsString> {
let mut args: Vec<OsString> = Vec::new();

args.push("--device".into());
args.push("-device".into());
args.push("virtio-serial".into());

args.push("-chardev".into());
Expand All @@ -438,7 +438,7 @@ fn virtio_serial_args(host_sock: &Path) -> Vec<OsString> {
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);
Expand Down

0 comments on commit db7dc9e

Please sign in to comment.