X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=util.cpp;h=41c13c6f2a3ed743a5345b3d0d41c37aefb6e5bc;hp=b79c6c3dccd5e0a58ca2f25a09b28c6d223bdd64;hb=d1ad2cf60ca694f742e2061a596bc27c7e58f5c8;hpb=03569c70282f68a4bc9b259fbf5b7a2b4c5594b3 diff --git a/util.cpp b/util.cpp index b79c6c3..41c13c6 100644 --- a/util.cpp +++ b/util.cpp @@ -4,6 +4,7 @@ #include #include +#include "log.h" #include "util.h" using namespace std; @@ -68,7 +69,7 @@ bool read_tempfile(int fd, std::string *contents) goto done; } if (ret == 0) { - fprintf(stderr, "Unexpected EOF!\n"); + log(ERROR, "Unexpected EOF!"); ok = false; goto done; }