flash/stm32*: Rewrite info functions
commit0ce2ca748b502d09acf878c338fe23776cf6d8e2
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Tue, 9 Jul 2013 19:49:07 +0000 (9 21:49 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 15 Jul 2013 09:55:49 +0000 (15 09:55 +0000)
tree3e3cab66f62a0868f9add7909c4780be1b8bb264
parent3646e86c974948fdae4bd0771377e1910966bc8e
flash/stm32*: Rewrite info functions

Factor out common bit masking and printing code and use intermediate
strings to avoid buffer size handling.

Change-Id: I7d8c12df11ade6cdca8c917b5524372daa498bf4
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1496
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/stm32f1x.c
src/flash/nor/stm32f2x.c
src/flash/nor/stm32lx.c