X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=drl%2Fsamplehold.c;h=8ebab9d8b9398312978ff602b81cfe230f204ae1;hp=4b79f3eec59e7e9a402251d2bacb18e043ce1994;hb=72b9872d1025afa4e1db53b6bc0d4a00a5afd123;hpb=19bf89f36a91be2fdd4a0b6c7099f7515507e1e1 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; }