Skip to content

Commit 4b8e847

Browse files
committed
cmds/intelana: simplify
Signed-off-by: Daniel Maslowski <[email protected]>
1 parent cbe3614 commit 4b8e847

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

cmds/intelana/main.go

+3-10
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,16 @@ func main() {
3838
if fi.IFD.Region.FlashRegions[r].Valid() {
3939
offset := fi.IFD.Region.FlashRegions[r].BaseOffset()
4040
size := fi.IFD.Region.FlashRegions[r].EndOffset() - offset
41-
fmt.Printf("%-5s offset %x size %x\n", r, offset, size)
41+
fmt.Printf("%-9s offset %x size %x\n", r, offset, size)
4242
} else {
43-
fmt.Printf("%-5s region not found: %s\n", r, err)
43+
fmt.Printf("%-9s region not found/invalid\n", r)
4444
}
4545
}
4646
}
4747

48-
/*
49-
for _, r := range fi.IFD.Region.FlashRegions {
50-
fmt.Printf(" %#v\n", r)
51-
}
52-
*/
53-
54-
doJson := false
55-
5648
fmt.Printf("\n== FIT ==\n")
5749
table, err := fit.GetTable(data)
50+
doJson := false
5851
if doJson {
5952
j, err := json.MarshalIndent(table, "", " ")
6053
if err != nil {

0 commit comments

Comments
 (0)