]> git.proxmox.com Git - mirror_qemu.git/commitdiff
chardev: don't use alias names in parse_compat()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 7 Jun 2017 17:41:15 +0000 (21:41 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 8 Jun 2017 13:57:58 +0000 (17:57 +0400)
"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>
chardev/char.c

index 7aa02107659cce439989647b870bfb060d39bd65..bcfc065d16f7567d0d82f81b7a902a97d070004f 100644 (file)
@@ -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;
     }