X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_lua.c;h=d0de9085b66a721b5be102ec89be9491fcbd2932;hp=4e570ff3c7c703d510361cc84b1c7283b7e7b250;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=307c875e5a78a2729fbbe1a588d232e9a129d75a diff --git a/src/utils_lua.c b/src/utils_lua.c index 4e570ff3..d0de9085 100644 --- a/src/utils_lua.c +++ b/src/utils_lua.c @@ -24,11 +24,7 @@ * Florian Forster **/ -/* defines a macro using "sprintf". Although not used here, - * GCC will complain about the macro definition. */ -#define DONT_POISON_SPRINTF_YET - -#include "common.h" +#include "utils/common/common.h" #include "utils_lua.h" static int ltoc_values(lua_State *L, /* {{{ */ @@ -57,8 +53,8 @@ static int ltoc_values(lua_State *L, /* {{{ */ } /* while (lua_next) */ if (i != ds->ds_num) { - WARNING("ltoc_values: invalid size for datasource \"%s\": expected %zu, " - "got %zu", + WARNING("ltoc_values: invalid size for datasource \"%s\": expected %" PRIsz + ", got %" PRIsz, ds->type, ds->ds_num, i); return -1; }