Fix getting error message when successfully using stlinkV2
authorJakub Tyszkowski <tyszja@gmail.com>
Sat, 7 Mar 2015 17:42:16 +0000 (18:42 +0100)
committerJakub Tyszkowski <tyszja@gmail.com>
Sat, 7 Mar 2015 18:18:58 +0000 (19:18 +0100)
commitfc961745f5ff121e827702255872354f31f95547
tree555d1ba79470373b2d7ff670fb232cd1d5b33081
parent527de547088056f3bf206dc5dacb273704ff5300
Fix getting error message when successfully using stlinkV2

When using stlinkV2 you are constantly getting error messages from
'stlink_v1_open' when all goes well and 'stlink_open_usb' is used
instead. This patch fixes this confusing behaviour and makes stlink-sg.c
use logging macros consistently by removing last 'stderr' printout. It
is not needed as 'stlink_v1_open_inner' is verbose enough.
src/stlink-sg.c