On Sat, 2009-05-23 at 00:46 +0200, Magnus Lundin wrote:
> Zach Welch wrote:
> > On Sat, 2009-05-23 at 00:18 +0200, Magnus Lundin wrote:
> >   
> >> Zach Welch wrote:
> >>     
> >>> On Tue, 2009-05-19 at 16:53 +0200, Magnus Lundin wrote: 
[snip]     
> >> There is a set of new patches that has been tested by Michael Fischer, 
> >> as far as i know there were no problems.
> >>
> >> There are still things that should be fixed in the resethandling in 
> >> jtag_add_reset and minimizing the differences between ft2232 and jlink 
> >> behaviour.
> >> But still would suggest that the following patcches are commited. They 
> >> are not untested.
> >>     
> >
> > I will apply them here and see if they magically cure my own woes.
> > Regardless, I think these changes should be committed in some for,
> > though I can see various ways that I would like to clean your code.
> > Would you mind my taking a pass over them before I commit them?
> >
> >   
> Sure,  I am out of style discussions on this list.

Committed the jlink.c changes as r1889.  While the JTAG and FTDI changes
look fine too, I cannot judge their relative risk/reward at this time,
so I feel that I must defer to others on those.  I'll follow up though.

I kept track of every change that I made in cleaning and included the
list with my commit message.  My changes were only on (or very near)
those lines that you added or changed in your patch.  The results were
frustrating for me (to say the least), but I hope my efforts will help
motivate everyone to avoid similar "mistakes" in the future.

In total, my cleaning removed 1.9K of superfluous changes, which was
over 25% of the original patch.  The changes are now easier to review,
and the code is much easier to understand as a bonus.  

Here is a short list of things that this patch did "wrong":
-- Hard-coded constants in code.
-- Inefficient flow-control statements (stylistically speaking)
-- Insufficient use of temporary variables.
-- Superfluous whitespace/comment-style changes.

While these are "superficial" to the compiler, they have a profound
affect on the substance of the code for those developing with it.

Regardless, the J-Link now works _much_ better for me in my own tests,
so I and the entire community of J-Link users owe you a Big Thanks. :)

Cheers,

Zach

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to