[coreboot-gerrit] Change in coreboot[master]: util/autoport: Fix VGA register warning

Maximilian Schander (Code Review) gerrit at coreboot.org
Sun Nov 5 20:29:52 CET 2017


Maximilian Schander has uploaded this change for review. ( https://review.coreboot.org/22352


Change subject: util/autoport: Fix VGA register warning
......................................................................

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 at mimoja.de>
---
M util/autoport/log_maker.go
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/22352/1

diff --git a/util/autoport/log_maker.go b/util/autoport/log_maker.go
index 15bd51c..3e2d881 100644
--- a/util/autoport/log_maker.go
+++ b/util/autoport/log_maker.go
@@ -51,7 +51,7 @@
 
 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)
 

-- 
To view, visit https://review.coreboot.org/22352
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I411fc47832dd7a82752f233c4909b98190340ccb
Gerrit-Change-Number: 22352
Gerrit-PatchSet: 1
Gerrit-Owner: Maximilian Schander <coreboot at mimoja.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171105/9d997ca0/attachment.html>


More information about the coreboot-gerrit mailing list