summaryrefslogtreecommitdiffstats
path: root/util/autoport/log_maker.go
diff options
context:
space:
mode:
authorMaximilian Schander <coreboot@mimoja.de>2017-11-05 20:25:42 +0100
committerNico Huber <nico.h@gmx.de>2017-11-08 11:42:00 +0000
commitbf9429252264a31d7b3aa87967031aa83b0f529f (patch)
treee16c65abdfe55770df0ea473c2623cbcd4cfcca2 /util/autoport/log_maker.go
parent5bcb23ebbb85d9616f8ba2a82e48178559b350e6 (diff)
downloadcoreboot-bf9429252264a31d7b3aa87967031aa83b0f529f.tar.gz
coreboot-bf9429252264a31d7b3aa87967031aa83b0f529f.tar.bz2
coreboot-bf9429252264a31d7b3aa87967031aa83b0f529f.zip
util/autoport: Fix VGA register warning
The warning is printed using Printf syntax but actually Println is used resulting in printing the format string first and the arguments second: "%s. (%s) Default:%s WARNING: [...]" Change-Id: I411fc47832dd7a82752f233c4909b98190340ccb Signed-off-by: Maximilian Schander <coreboot@mimoja.de> Reviewed-on: https://review.coreboot.org/22352 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'util/autoport/log_maker.go')
-rw-r--r--util/autoport/log_maker.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/autoport/log_maker.go b/util/autoport/log_maker.go
index 15bd51ce3bf7..a62f8f6ea80e 100644
--- a/util/autoport/log_maker.go
+++ b/util/autoport/log_maker.go
@@ -51,7 +51,8 @@ const MAXPROMPTRETRY = 3
func PromptUser(prompt string, opts []string) (match string, err error) {
for i := 1; i < MAXPROMPTRETRY; i++ {
- fmt.Println("%s. (%s) Default:%s", prompt, strings.Join(opts, "/"), opts[0])
+ fmt.Printf("%s. (%s) Default:%s\n", prompt,
+ strings.Join(opts, "/"), opts[0])
var usrInput string
fmt.Scanln(&usrInput)