diff options
author | cbdev <cb@cbcdn.com> | 2018-03-28 15:02:10 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-03-28 15:02:10 +0200 |
commit | a261ab738d4fd5e99a7009da882dde908171f187 (patch) | |
tree | ad0eb7957bfe5668e604fe2afde5ac98fffcd6f3 | |
parent | 52cb34c88129145597984913b86321a940fc520a (diff) | |
download | midimonster-a261ab738d4fd5e99a7009da882dde908171f187.tar.gz midimonster-a261ab738d4fd5e99a7009da882dde908171f187.tar.bz2 midimonster-a261ab738d4fd5e99a7009da882dde908171f187.zip |
Elaborate backend error message
-rw-r--r-- | backend.c | 3 | ||||
-rw-r--r-- | midimonster.c | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -28,6 +28,9 @@ int backends_handle(size_t nfds, managed_fd* fds){ DBGPF("Notifying backend %s of %zu waiting FDs\n", backends[u].name, n); rv |= backends[u].process(n, fds); + if(rv){ + fprintf(stderr, "Backend %s failed to handle input\n", backends[u].name); + } } return rv; } diff --git a/midimonster.c b/midimonster.c index 2ca4a92..629a0d9 100644 --- a/midimonster.c +++ b/midimonster.c @@ -298,7 +298,6 @@ int main(int argc, char** argv){ //run backend processing, collect events DBGPF("%zu backend FDs signaled\n", n); if(backends_handle(n, signaled_fds)){ - fprintf(stderr, "Backends failed to handle input\n"); goto bail; } |