kopia lustrzana https://github.com/stlink-org/stlink
Fix error being reported twice
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.pull/299/head
rodzic
873fb352fc
commit
527de54708
|
@ -980,7 +980,7 @@ stlink_t* stlink_v1_open_inner(const int verbose) {
|
|||
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");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue