diff --git a/cmds/intelana/main.go b/cmds/intelana/main.go index d66e1711..282912b3 100644 --- a/cmds/intelana/main.go +++ b/cmds/intelana/main.go @@ -6,7 +6,6 @@ import ( "fmt" "io/ioutil" "log" - "os" fit "github.com/linuxboot/fiano/pkg/intel/metadata/fit" ifd "github.com/linuxboot/fiano/pkg/tools" @@ -63,8 +62,7 @@ func main() { } fmt.Printf("\n== FIT ==\n") - file, err := os.Open(path) - headers, err := fit.ParseEntryHeadersFrom(file) + headers, err := fit.GetTable(data) j, err := json.MarshalIndent(headers, "", " ") if err != nil { log.Fatal(err)