X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drl%2Fsamplehold.c;h=8ebab9d8b9398312978ff602b81cfe230f204ae1;hb=72b9872d1025afa4e1db53b6bc0d4a00a5afd123;hp=4b79f3eec59e7e9a402251d2bacb18e043ce1994;hpb=0be9704d6b24d09ebd55beedec52758cb88c570b;p=distributedratelimiting.git diff --git a/drl/samplehold.c b/drl/samplehold.c index 4b79f3e..8ebab9d 100644 --- a/drl/samplehold.c +++ b/drl/samplehold.c @@ -9,6 +9,7 @@ #include "common_accounting.h" #include "samplehold.h" +#include "logging.h" static int match(const key_flow *key, const sampled_flow *flow) { if (flow->state != FLOW_USED) @@ -167,7 +168,7 @@ int sampled_table_sample(sampled_flow_table table, const key_flow *key) { if (lookup == NULL) { /* Table is full!?! */ - printf("Full table!\n"); + printlog(LOG_WARN, "samplehold.c: Table full!\n"); return 0; }