Skip to content

Commit

Permalink
Merge pull request #15 from theopolis/flash_parse
Browse files Browse the repository at this point in the history
Fix flash info, parsing status
  • Loading branch information
Teddy Reed committed Oct 5, 2014
2 parents be34a60 + d98443e commit 9d4d220
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions uefi_firmware/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def process(self):
pass
for section in self.sections:
section.process()
pass
return True

def showinfo(self, ts='', index=None):
print "%s%s type= %s, size= 0x%x (%d bytes) details[ %s ]" % (
Expand Down Expand Up @@ -158,18 +158,18 @@ def _region_offset(base):
})
gbe_region.process()
self.regions.append(gbe_region)
return True

def showinfo(self, ts='', index=None):
print (
"%s%s chips %d, regions %d, masters %d, " +
"PCH straps %d, PROC straps %d, ICC entries %d" % (
print (("%s%s chips %d, regions %d, masters %d, PCH straps %d, "
"PROC straps %d, ICC entries %d") % (
ts, blue("Flash Descriptor (Intel PCH)"),
self.map.structure.NumberOfFlashChips,
self.map.structure.NumberOfRegions, self.map.structure.NumberOfMasters,
self.map.structure.NumberOfPchStraps, self.map.structure.NumberOfProcStraps,
self.map.structure.NumberOfIccTableEntries
)
)
self.map.structure.NumberOfRegions,
self.map.structure.NumberOfMasters,
self.map.structure.NumberOfPchStraps,
self.map.structure.NumberOfProcStraps,
self.map.structure.NumberOfIccTableEntries))
for region in self.regions:
region.showinfo(ts="%s " % ts)

Expand Down

0 comments on commit 9d4d220

Please sign in to comment.