diff options
author | Marc-André Lureau | 2017-06-07 19:41:15 +0200 |
---|---|---|
committer | Marc-André Lureau | 2017-06-08 15:57:58 +0200 |
commit | 73119c2864cfd193b2883f833b598e381f7d29d7 (patch) | |
tree | 36450b522001136888dd9fb2534477bd6057de41 /chardev | |
parent | char: fix alias devices regression (diff) | |
download | qemu-73119c2864cfd193b2883f833b598e381f7d29d7.tar.gz qemu-73119c2864cfd193b2883f833b598e381f7d29d7.tar.xz qemu-73119c2864cfd193b2883f833b598e381f7d29d7.zip |
chardev: don't use alias names in parse_compat()
"parport" is considered "old" since commit 88a946d32d, when "parallel"
was added. Similarly for "tty" in commit d59044ef74d.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'chardev')
-rw-r--r-- | chardev/char.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chardev/char.c b/chardev/char.c index 7aa0210765..bcfc065d16 100644 --- a/chardev/char.c +++ b/chardev/char.c @@ -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; } |