diff options
-rw-r--r-- | backend.c | 8 | ||||
-rw-r--r-- | midimonster.c | 1 |
2 files changed, 6 insertions, 3 deletions
@@ -247,10 +247,14 @@ int mm_backend_register(backend b){ } int backends_start(){ - int rv = 0; + int rv = 0, current; size_t u; for(u = 0; u < nbackends; u++){ - rv |= backends[u].start(); + current = backends[u].start(); + if(current){ + fprintf(stderr, "Failed to start backend %s\n", backends[u].name); + } + rv |= current; } return rv; } diff --git a/midimonster.c b/midimonster.c index 87abfb1..2ca4a92 100644 --- a/midimonster.c +++ b/midimonster.c @@ -250,7 +250,6 @@ int main(int argc, char** argv){ //start backends if(backends_start()){ - fprintf(stderr, "Failed to start backends\n"); goto bail; } |