[coreboot-gerrit] Change in coreboot[master]: [TEST]autoport: Remove '-' from Kconfig options

Arthur Heymans (Code Review) gerrit at coreboot.org
Thu Jan 18 22:21:16 CET 2018


Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/23321


Change subject: [TEST]autoport: Remove '-' from Kconfig options
......................................................................

[TEST]autoport: Remove '-' from Kconfig options

This won't compile since '-' is an operator in C.

Change-Id: Icf900c959cbcbd0b07cd83a1f6866bf255fdcf01
Signed-off-by: Arthur Heymans <arthur at aheymans.xyz>
---
M util/autoport/main.go
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/23321/1

diff --git a/util/autoport/main.go b/util/autoport/main.go
index 1d50780..6e5c93c 100644
--- a/util/autoport/main.go
+++ b/util/autoport/main.go
@@ -147,6 +147,7 @@
 	result := strings.ToLower(inp)
 	result = strings.Replace(result, " ", "_", -1)
 	result = strings.Replace(result, ",", "_", -1)
+	result = strings.Replace(result, "-", "_", -1)
 	for strings.HasSuffix(result, ".") {
 		result = result[0 : len(result)-1]
 	}

-- 
To view, visit https://review.coreboot.org/23321
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icf900c959cbcbd0b07cd83a1f6866bf255fdcf01
Gerrit-Change-Number: 23321
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur at aheymans.xyz>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180118/c97b04b5/attachment.html>


More information about the coreboot-gerrit mailing list