diff options
author | cbdev <cb@cbcdn.com> | 2020-09-06 22:45:20 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2020-09-06 22:45:20 +0200 |
commit | fec26ba3f193f3e31e08b55dfb3c60aa30eed63f (patch) | |
tree | 5d2b843cc088f76f5e1fdbb5315cccea824855b7 /backend.c | |
parent | dc7303cc07565a725eec19aeff46f64ad4275c21 (diff) | |
download | midimonster-fec26ba3f193f3e31e08b55dfb3c60aa30eed63f.tar.gz midimonster-fec26ba3f193f3e31e08b55dfb3c60aa30eed63f.tar.bz2 midimonster-fec26ba3f193f3e31e08b55dfb3c60aa30eed63f.zip |
Add rate limiting notice to sACN and ArtNet
Diffstat (limited to 'backend.c')
-rw-r--r-- | backend.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -94,16 +94,18 @@ int backends_notify(size_t nev, channel** c, channel_value* v){ MM_API channel* mm_channel(instance* inst, uint64_t ident, uint8_t create){ size_t u, bucket = channelstore_hash(inst, ident); + DBGPF("\tSearching for inst %" PRIu64 " ident %" PRIu64, inst, ident); for(u = 0; u < channels.n[bucket]; u++){ + DBGPF("\tBucket %" PRIsize_t " entry %" PRIsize_t " inst %" PRIu64 " ident %" PRIu64, bucket, u, channels.entry[bucket][u]->instance, channels.entry[bucket][u]->ident); if(channels.entry[bucket][u]->instance == inst && channels.entry[bucket][u]->ident == ident){ - DBGPF("Requested channel %" PRIu64 " on instance %s already exists, reusing (%" PRIsize_t " search steps)\n", ident, inst->name, u); + DBGPF("Requested channel %" PRIu64 " on instance %s already exists, reusing (bucket %" PRIsize_t ", %" PRIsize_t " search steps)\n", ident, inst->name, bucket, u); return channels.entry[bucket][u]; } } if(!create){ - DBGPF("Requested unknown channel %" PRIu64 " on instance %s\n", ident, inst->name); + DBGPF("Requested unknown channel %" PRIu64 " (bucket %" PRIsize_t ") on instance %s\n", ident, bucket, inst->name); return NULL; } |