X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_lua.c;h=11ac001061733ecd396cc0277d358928d5143b0d;hp=0990472bd6740c4b21fe7d4bbbef60eda2b2d600;hb=fa36b45bfafec663e49639d40f4671e018e7ee10;hpb=1b10ab706f8b70ce2f086e59a54cc09d671ad989 diff --git a/src/utils_lua.c b/src/utils_lua.c index 0990472b..11ac0010 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_lua.h" #include "common.h" +#include "utils_lua.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; }