Re: [Openocd-development] [patch] accept target *names* everywhere, not just numbers

2009-05-17 Thread Rick Altherr
On May 17, 2009, at 1:18 PM, David Brownell wrote: Replace get_target_by_num() with get_target(): - Allows target names, not just numbers ... numbers are awkward for config scripts, given for example a system with several CPUs or flash chips. - Slightly shrinks most call sites by removing

[Openocd-development] [patch] accept target *names* everywhere, not just numbers

2009-05-17 Thread David Brownell
Replace get_target_by_num() with get_target(): - Allows target names, not just numbers ... numbers are awkward for config scripts, given for example a system with several CPUs or flash chips. - Slightly shrinks most call sites by removing strtoul() calls. - Use the same error message e