diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-03-09 15:58:04 +0000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-05-26 11:26:24 +0200 |
commit | 644f66bf5d09f98d1da7a6bcec6bd9ce795f868c (patch) | |
tree | a997b890fb2c1a07833c72f6158a967670d44dce /hw/input/ps2.c | |
parent | 92f8c6fef13b31ba222c4d20ad8afd2b79c4c28e (diff) |
hw/input: expand trace info reported for ps2 device
It is interesting to know if the PS2 keyboard is in translated mode, and
which of the three scancode sets are in use.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210309155804.306051-1-berrange@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/input/ps2.c')
-rw-r--r-- | hw/input/ps2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/input/ps2.c b/hw/input/ps2.c index 72cdb80ae1..5352e417a4 100644 --- a/hw/input/ps2.c +++ b/hw/input/ps2.c @@ -293,7 +293,8 @@ static void ps2_keyboard_event(DeviceState *dev, QemuConsole *src, qcode = qemu_input_key_value_to_qcode(key->key); mod = ps2_modifier_bit(qcode); - trace_ps2_keyboard_event(s, qcode, key->down, mod, s->modifiers); + trace_ps2_keyboard_event(s, qcode, key->down, mod, + s->modifiers, s->scancode_set, s->translate); if (key->down) { s->modifiers |= mod; } else { |