X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_lua.c;h=1f060f84e5001283f317b77e9cd318a5806ea266;hp=0990472bd6740c4b21fe7d4bbbef60eda2b2d600;hb=d486225f89ea52d8ed2b4242eba2ad94c409f837;hpb=8fd8f76dc11064e75e44448d16d35e09e46191a2 diff --git a/src/utils_lua.c b/src/utils_lua.c index 0990472b..1f060f84 100644 --- a/src/utils_lua.c +++ b/src/utils_lua.c @@ -28,8 +28,8 @@ * 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 +57,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; }