bugfixes: tinker a bit with the targets command
commit08815946f64ace39b2734dc1a8597d22505f0436
authorØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 27 Oct 2011 21:51:50 +0000 (27 23:51 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 31 Oct 2011 17:41:44 +0000 (31 17:41 +0000)
treef33a05fc0fc3e2fc7174a1a171453919a7b7fcde
parentfc553327c0a40b3039388bf9139aad2f9dc8fdf1
bugfixes: tinker a bit with the targets command

return error when target can not be found instead of ERROR_OK,
split fn.

Change-Id: Iba5232d3862a490d0995c3bfece23685bd6856e3
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Reviewed-on: http://openocd.zylin.com/131
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/target.c