]> git.proxmox.com Git - qemu.git/commit
chardev: fix "info chardev" output
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 27 May 2013 10:41:24 +0000 (12:41 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 11 Jun 2013 21:59:23 +0000 (16:59 -0500)
commitddaa83eebe69e9d7967ac77254dabe4acfd125b0
tree15ec41682d67b6db141151a422964d1851ba453f
parent38ec6c10714f360c55cdbd0d08b17457bf6ff392
chardev: fix "info chardev" output

Fill unset CharDriverState->filename with the backend name, so
'info chardev' will return at least the chardev type.  Don't
touch it in case the chardev init function filled it already,
like the socket+pty chardevs do for example.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 60d95386abf1f5f37ded6a812d12ac458df2491b)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qemu-char.c