]> git.sesse.net Git - cubemap/blobdiff - markpool.cpp
New run of include-what-you-use.
[cubemap] / markpool.cpp
index 196952ec8bd20f2da27f99150af613c8e3cf51cb..b3b6a1c0a7594b79633ceb348da7e2a15e2f6b8c 100644 (file)
@@ -1,3 +1,4 @@
+#include "log.h"
 #include "markpool.h"
 #include "mutexlock.h"
 #include <stdio.h>
@@ -22,9 +23,9 @@ int MarkPool::get_mark()
 {
        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();