aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-03-25 22:47:20 +0200
committercbdev <cb@cbcdn.com>2018-03-25 22:47:20 +0200
commit52cb34c88129145597984913b86321a940fc520a (patch)
tree4d25d611e1253ccae0ff90baa746bc1bc603dec5
parent5bb808797abe2ac0805c60bb0b72f940a8cfc1af (diff)
downloadmidimonster-52cb34c88129145597984913b86321a940fc520a.tar.gz
midimonster-52cb34c88129145597984913b86321a940fc520a.tar.bz2
midimonster-52cb34c88129145597984913b86321a940fc520a.zip
Clarify startup error message
-rw-r--r--backend.c8
-rw-r--r--midimonster.c1
2 files changed, 6 insertions, 3 deletions
diff --git a/backend.c b/backend.c
index 49f0b6d..3ed336d 100644
--- a/backend.c
+++ b/backend.c
@@ -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;
}