X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_lua.c;h=d0de9085b66a721b5be102ec89be9491fcbd2932;hp=0990472bd6740c4b21fe7d4bbbef60eda2b2d600;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=0eff2a882a9265fd59d4f7a265c6b6810acb0032 diff --git a/src/utils_lua.c b/src/utils_lua.c index 0990472b..d0de9085 100644 --- a/src/utils_lua.c +++ b/src/utils_lua.c @@ -24,12 +24,8 @@ * Florian Forster **/ -/* defines a macro using "sprintf". Although not used here, - * GCC will complain about the macro definition. */ -#define DONT_POISON_SPRINTF_YET - +#include "utils/common/common.h" #include "utils_lua.h" -#include "common.h" static int ltoc_values(lua_State *L, /* {{{ */ const data_set_t *ds, value_t *ret_values) { @@ -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; }