]> git.baikalelectronics.ru Git - uboot.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)
commit5c6853d962f92ff015806c406efced6e560b005e
tree3410e4d72a91130d2da17ea485a1592417815342
parent1dfbf351174ebf9009e649b89d5c135cc9395734
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: 7a800b3de2da ("tools: kwbimage: Dump kwbimage config file on '-p -1' option")
Signed-off-by: Pali Rohár <pali@kernel.org>
tools/kwbimage.c