+#include "log.h"
#include "markpool.h"
#include "mutexlock.h"
#include <stdio.h>
{
MutexLock lock(&mutex);
if (free_marks.empty()) {
- fprintf(stderr, "WARNING: Out of free marks in mark pool %d-%d, session will not be marked.\n",
- start, end);
- fprintf(stderr, " To fix, increase the pool size and HUP the server.\n");
+ log(WARNING, "Out of free marks in mark pool %d-%d, session will not be marked. "
+ "To fix, increase the pool size and HUP the server.",
+ start, end);
return 0;
}
int mark = free_marks.front();