aboutsummaryrefslogtreecommitdiffhomepage
path: root/midimonster.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2017-11-13 03:08:49 +0100
committercbdev <cb@cbcdn.com>2017-11-13 03:08:49 +0100
commit06a87606cdef8af477c4341d764102c0d3f3e7e2 (patch)
treecaee56dd44be7dc40b4c1cbc992fe57126ea1f87 /midimonster.c
parentd370095a576b2ea949ec2c169a9f081f1cb307b0 (diff)
downloadmidimonster-06a87606cdef8af477c4341d764102c0d3f3e7e2.tar.gz
midimonster-06a87606cdef8af477c4341d764102c0d3f3e7e2.tar.bz2
midimonster-06a87606cdef8af477c4341d764102c0d3f3e7e2.zip
Add debug messages
Diffstat (limited to 'midimonster.c')
-rw-r--r--midimonster.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/midimonster.c b/midimonster.c
index 8f30686..c8a0109 100644
--- a/midimonster.c
+++ b/midimonster.c
@@ -248,6 +248,7 @@ int main(int argc, char** argv){
}
//create initial fd set
+ DBGPF("Building selector set from %zu FDs registered to core\n", fds);
FD_ZERO(&all_fds);
for(u = 0; u < fds; u++){
if(fd[u].fd >= 0){
@@ -277,6 +278,7 @@ 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;
@@ -284,6 +286,7 @@ int main(int argc, char** argv){
while(primary->n){
//swap primary and secondary event collectors
+ DBGPF("Swapping event collectors, %zu events in primary\n", primary->n);
for(u = 0; u < sizeof(event_pool)/sizeof(event_collection); u++){
if(primary != event_pool + u){
secondary = primary;