diff options
author | Hani Benhabiles <kroosec@gmail.com> | 2014-03-31 23:09:06 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-04-01 10:17:45 +0200 |
commit | 0419f78fae1d70bb5de0d44be62ec9741c5a742b (patch) | |
tree | 2c2853949aa525bc774905b5bebd8117e95c00ad /target-openrisc/helper.h | |
parent | e82597f6f83bf872677cde37e540882880dcbafe (diff) | |
download | qemu-0419f78fae1d70bb5de0d44be62ec9741c5a742b.zip qemu-0419f78fae1d70bb5de0d44be62ec9741c5a742b.tar.gz qemu-0419f78fae1d70bb5de0d44be62ec9741c5a742b.tar.bz2 |
input: mouse_set should check input device type.
Otherwise, the index of an input device like a usb-kbd is silently accepted.
(qemu) info mice
Mouse #2: QEMU PS/2 Mouse
* Mouse #3: QEMU HID Mouse
(qemu) mouse_set 1
(qemu) info mice
Mouse #2: QEMU PS/2 Mouse
* Mouse #3: QEMU HID Mouse
Also replace monitor_printf() call in do_mouse_set() with error_report() and
adjust error message.
Signed-off-by: Hani Benhabiles <hani@linux.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'target-openrisc/helper.h')
0 files changed, 0 insertions, 0 deletions