]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwbimage: Fix dumping register set / DATA commands
authorPali Rohár <pali@kernel.org>
Sun, 8 Jan 2023 12:53:48 +0000 (13:53 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Mar 2023 05:39:17 +0000 (06:39 +0100)
commit908801dcfe8a1e45b5e6e37c4b7e43f79dfc36ec
tree3410e4d72a91130d2da17ea485a1592417815342
parent4941652df5a9a8a9404e64655e3630318247d329
tools: kwbimage: Fix dumping register set / DATA commands

Upper-bound for iterating for-loop over register set entries is incorrect.
Fix it byt calculating correct number of entries.

And fix also dumping the last entry DATA_DELAY, which is the last and not
first (zero).

Fixes: 1a8e6b63e24f ("tools: kwbimage: Dump kwbimage config file on '-p -1' option")
Signed-off-by: Pali Rohár <pali@kernel.org>
tools/kwbimage.c