OSDN Git Service

chardev: fix "info chardev" output
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 27 May 2013 10:41:24 +0000 (12:41 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 27 May 2013 10:47:28 +0000 (12:47 +0200)
commit60d95386abf1f5f37ded6a812d12ac458df2491b
treeffb9e237d3de60a0b77651511cbae71dc2e661f2
parent3022e6b472d0f6d56efbe890e0f1c94841b170d4
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>
qemu-char.c