diff options
author | cbdev <cb@cbcdn.com> | 2018-03-25 22:47:20 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-03-25 22:47:20 +0200 |
commit | 52cb34c88129145597984913b86321a940fc520a (patch) | |
tree | 4d25d611e1253ccae0ff90baa746bc1bc603dec5 | |
parent | 5bb808797abe2ac0805c60bb0b72f940a8cfc1af (diff) | |
download | midimonster-52cb34c88129145597984913b86321a940fc520a.tar.gz midimonster-52cb34c88129145597984913b86321a940fc520a.tar.bz2 midimonster-52cb34c88129145597984913b86321a940fc520a.zip |
Clarify startup error message
-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; } |