Skip to content

Commit

Permalink
chardev: don't use alias names in parse_compat()
Browse files Browse the repository at this point in the history
"parport" is considered "old" since commit 88a946d, when "parallel"
was added. Similarly for "tty" in commit d59044e.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
  • Loading branch information
elmarco committed Jun 8, 2017
1 parent d203c64 commit 73119c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chardev/char.c
Expand Up @@ -450,12 +450,12 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename)
}
if (strstart(filename, "/dev/parport", NULL) ||
strstart(filename, "/dev/ppi", NULL)) {
qemu_opt_set(opts, "backend", "parport", &error_abort);
qemu_opt_set(opts, "backend", "parallel", &error_abort);
qemu_opt_set(opts, "path", filename, &error_abort);
return opts;
}
if (strstart(filename, "/dev/", NULL)) {
qemu_opt_set(opts, "backend", "tty", &error_abort);
qemu_opt_set(opts, "backend", "serial", &error_abort);
qemu_opt_set(opts, "path", filename, &error_abort);
return opts;
}
Expand Down

0 comments on commit 73119c2

Please sign in to comment.