aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-09-06 22:45:20 +0200
committercbdev <cb@cbcdn.com>2020-09-06 22:45:20 +0200
commitfec26ba3f193f3e31e08b55dfb3c60aa30eed63f (patch)
tree5d2b843cc088f76f5e1fdbb5315cccea824855b7 /backend.c
parentdc7303cc07565a725eec19aeff46f64ad4275c21 (diff)
downloadmidimonster-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/backend.c b/backend.c
index 0fb6679..16e095c 100644
--- a/backend.c
+++ b/backend.c
@@ -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;
}