git://git.onelab.eu
/
distributedratelimiting.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaned up a lot of printing.
[distributedratelimiting.git]
/
drl
/
samplehold.c
diff --git
a/drl/samplehold.c
b/drl/samplehold.c
index
4b79f3e
..
8ebab9d
100644
(file)
--- a/
drl/samplehold.c
+++ b/
drl/samplehold.c
@@
-9,6
+9,7
@@
#include "common_accounting.h"
#include "samplehold.h"
#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)
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!?! */
if (lookup == NULL) {
/* Table is full!?! */
- print
f("Full table
!\n");
+ print
log(LOG_WARN, "samplehold.c: Table full
!\n");
return 0;
}
return 0;
}