From 374d8f089f12c56ac19a8392527d740a64510e36 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Thu, 19 Apr 2018 16:09:38 -0700 Subject: [PATCH] better log message --- common/bootcommand/pc_xt_driver.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/bootcommand/pc_xt_driver.go b/common/bootcommand/pc_xt_driver.go index f23b7ffc3..de148e42e 100644 --- a/common/bootcommand/pc_xt_driver.go +++ b/common/bootcommand/pc_xt_driver.go @@ -130,7 +130,6 @@ func (d *pcXTDriver) Finalize() error { } func (d *pcXTDriver) SendKey(key rune, action KeyAction) error { - keyShift := unicode.IsUpper(key) || strings.ContainsRune(shiftedChars, key) var scancode []string @@ -151,9 +150,8 @@ func (d *pcXTDriver) SendKey(key rune, action KeyAction) error { scancode = append(scancode, fmt.Sprintf("%02x", scancodeInt)) } - for _, sc := range scancode { - log.Printf("Sending char '%c', code '%s', shift %v", key, sc, keyShift) - } + log.Printf("Sending char '%c', code '%s', shift %v", + key, strings.Join(scancode, ""), keyShift) d.send(scancode) return nil