From: travisutk Date: Wed, 2 Sep 2009 01:06:00 +0000 (+0000) Subject: Byte count in JEDEC info. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=681135fc7e254da993be28ffb6280ee149351234 Byte count in JEDEC info. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@108 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/goodfet.spiflash b/client/goodfet.spiflash index e6150e2..efca070 100755 --- a/client/goodfet.spiflash +++ b/client/goodfet.spiflash @@ -56,11 +56,12 @@ if(sys.argv[1]=="test"): if(sys.argv[1]=="info"): data=client.SPIjedec(); - print "Ident as %s\nManufacturer: %02x %s\nType: %02x\nCapacity: %02x" % ( + print "Ident as %s\nManufacturer: %02x %s\nType: %02x\nCapacity: %02x (%i bytes)" % ( client.SPIjedecstr(), ord(data[1]),client.SPIjedecmanstr(), ord(data[2]), - ord(data[3])); + ord(data[3]), + client.JEDECsize); if(sys.argv[1]=="dump"): f = sys.argv[2];