summaryrefslogtreecommitdiff
path: root/util/spd_tools/lp4x/gen_part_id.go
diff options
context:
space:
mode:
authorMartin Roth <martin@coreboot.org>2021-02-22 20:11:18 -0700
committerPatrick Georgi <pgeorgi@google.com>2021-02-27 09:37:34 +0000
commitf0a7e365276827bc8e1174074c15508211df1801 (patch)
treed401eaeedeb64eaafab144f99769b8c1c3c85254 /util/spd_tools/lp4x/gen_part_id.go
parentdb717db5c59059a5d8646c2db32002b798bed106 (diff)
downloadcoreboot-f0a7e365276827bc8e1174074c15508211df1801.tar.xz
util/spd_tools: Run go fmt on all .go files
This just reformats these files. go fmt should probably be run on the check-in of every .go file. Signed-off-by: Martin Roth <martin@coreboot.org> Change-Id: I70ced115bad42d123474b18bbff2e4c0a16f3d88 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51019 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/spd_tools/lp4x/gen_part_id.go')
-rw-r--r--util/spd_tools/lp4x/gen_part_id.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/spd_tools/lp4x/gen_part_id.go b/util/spd_tools/lp4x/gen_part_id.go
index ad47aab521..71ef3ec11b 100644
--- a/util/spd_tools/lp4x/gen_part_id.go
+++ b/util/spd_tools/lp4x/gen_part_id.go
@@ -26,8 +26,8 @@ import (
*/
const (
SPDManifestFileName = "lp4x_spd_manifest.generated.txt"
- MakefileName = "Makefile.inc"
- DRAMIdFileName = "dram_id.generated.txt"
+ MakefileName = "Makefile.inc"
+ DRAMIdFileName = "dram_id.generated.txt"
)
func usage() {
@@ -41,7 +41,7 @@ func usage() {
func checkArgs() error {
for _, arg := range os.Args[1:] {
- if _, err := os.Stat(arg); err != nil {
+ if _, err := os.Stat(arg); err != nil {
return err
}
}
@@ -112,7 +112,7 @@ func appendPartIdInfo(s *string, partName string, index int) {
type partIds struct {
SPDFileName string
- memParts string
+ memParts string
}
/*
@@ -136,7 +136,7 @@ func genPartIdInfo(parts []string, partToSPDMap map[string]string, SPDToIndexMap
continue
}
- SPDFileName,ok := partToSPDMap[p]
+ SPDFileName, ok := partToSPDMap[p]
if !ok {
return nil, fmt.Errorf("Failed to find part ", p, " in SPD Manifest. Please add the part to global part list and regenerate SPD Manifest")
}