Cleaned up a lot of printing.
[distributedratelimiting.git] / drl / samplehold.c
index 4b79f3e..8ebab9d 100644 (file)
@@ -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;
         }