Skip to content

Commit 952d638

Browse files
committed
intelana: use GetTable(data), not ParseEntryHeadersFrom(file)
Signed-off-by: Daniel Maslowski <[email protected]>
1 parent 63ecbc6 commit 952d638

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmds/intelana/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"io/ioutil"
88
"log"
9-
"os"
109

1110
fit "github.com/linuxboot/fiano/pkg/intel/metadata/fit"
1211
ifd "github.com/linuxboot/fiano/pkg/tools"
@@ -63,8 +62,7 @@ func main() {
6362
}
6463

6564
fmt.Printf("\n== FIT ==\n")
66-
file, err := os.Open(path)
67-
headers, err := fit.ParseEntryHeadersFrom(file)
65+
headers, err := fit.GetTable(data)
6866
j, err := json.MarshalIndent(headers, "", " ")
6967
if err != nil {
7068
log.Fatal(err)

0 commit comments

Comments
 (0)