]> git.baikalelectronics.ru Git - uboot.git/commit
stm32prog: add partition name in treat_partition_list error messages
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 18 Jan 2022 09:33:14 +0000 (10:33 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 24 Jan 2022 10:01:41 +0000 (11:01 +0100)
commit5f7b87e82a6079286383682435b11f04830b30f4
tree4f076bb4c2b6c22b0693488033ec9b407c8f47e2
parent3e36da4500027a96b4b0ee1bc617e2fecffcebf2
stm32prog: add partition name in treat_partition_list error messages

Add the partition name and remove the line number in error messages
of treat_partition_list() to provide correct information to user of
STM32CubeProgrammer.

The "line number" value was confusing because it is incorrect here;
the index in  part_array[] is not aligned with the line number in
the parsed Layout file, because the empty lines and the lines beginning
by '#' are skipped during the first parsing in parse_flash_layout().

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c