X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_lua.c;h=11ac001061733ecd396cc0277d358928d5143b0d;hp=4e570ff3c7c703d510361cc84b1c7283b7e7b250;hb=fa36b45bfafec663e49639d40f4671e018e7ee10;hpb=5ff74d56067ac64db801df5184eb8b97f4b2b645 diff --git a/src/utils_lua.c b/src/utils_lua.c index 4e570ff3..11ac0010 100644 --- a/src/utils_lua.c +++ b/src/utils_lua.c @@ -24,10 +24,6 @@ * 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_lua.h" @@ -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; }