If 'stlink_v1_open_inner' returns NULL then 'stlink_v1_open' prints
to stderr thus there is no need for the former one to print it also.
This removes 'Error: could not open stlink device' being printed
twice.
ugly_init(verbose);
stlink_t *sl = stlink_open(verbose);
if (sl == NULL) {
ugly_init(verbose);
stlink_t *sl = stlink_open(verbose);
if (sl == NULL) {
- fputs("Error: could not open stlink device\n", stderr);
+ ELOG("Could not open stlink device\n");