On Sat, Aug 03, 2019 at 05:11:38PM +0200, Karl Hammar wrote:
> urj_vhdl_set_entity() saved the entity name in the parts part_name.
> Now that that bug is fixed, save the entity name as part_name if
> the idcode matches for this file.
That is way too much "copy and paste" from previous "too many unrelated
changes in 1 commit".
Rewrite the commit message into what just matches the change from below.
> ---
> urjtag/src/bsdl/bsdl.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/urjtag/src/bsdl/bsdl.c b/urjtag/src/bsdl/bsdl.c
> index afb5d635..d81e969e 100644
> --- a/urjtag/src/bsdl/bsdl.c
> +++ b/urjtag/src/bsdl/bsdl.c
> @@ -140,10 +140,13 @@ urj_bsdl_read_file (urj_chain_t *chain, const char
> *BSDL_File_Name,
>
> result = urj_bsdl_process_elements (&jtag_ctrl, idcode);
>
> - if (result >= 0)
> + if (result >= 0) {
> + strncpy(jtag_ctrl.part->part_name,
> vhdl_parser_priv->entity_name, URJ_PART_PART_MAXLEN);
> + jtag_ctrl.part->part_name[URJ_PART_PART_MAXLEN] = '\0';
> urj_bsdl_msg (proc_mode,
> _("BSDL file '%s' passed BSDL stage
> correctly\n"),
> BSDL_File_Name);
> + }
>
> }
> else
Groeten
Geert Stappers
--
Leven en laten leven
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development