flash: print bank usage on failure
commit9db465810a43e934f4f3c267ac279140c7c156dd
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 19 Jan 2012 15:08:50 +0000 (19 15:08 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 23 Jan 2012 11:29:52 +0000 (23 11:29 +0000)
tree8dbe3748590af2872ffec9e1cacf769f0c9c5ad0
parent23ece85f33bb327ab50ce8573c2c46faa4ad1529
flash: print bank usage on failure

This makes use of the newly introduced usage field in the flash bank
structure.

Also remove the assertion if usage field is null and
lets print a DEBUG_LOG message instead.

Change-Id: I384bf0e2c444fcc99deef73aec9ef01149a91c76
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/391
Tested-by: jenkins
src/flash/nand/tcl.c
src/flash/nor/tcl.c