X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=markpool.cpp;h=b3b6a1c0a7594b79633ceb348da7e2a15e2f6b8c;hb=d1ad2cf60ca694f742e2061a596bc27c7e58f5c8;hp=196952ec8bd20f2da27f99150af613c8e3cf51cb;hpb=03569c70282f68a4bc9b259fbf5b7a2b4c5594b3;p=cubemap diff --git a/markpool.cpp b/markpool.cpp index 196952e..b3b6a1c 100644 --- a/markpool.cpp +++ b/markpool.cpp @@ -1,3 +1,4 @@ +#include "log.h" #include "markpool.h" #include "mutexlock.h" #include @@ -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();