X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=55699d5dca67f816e72629f0ea4744605b09048f;hb=21df6c124e90c6312301bf4fdd61ae98c5486109;hp=86f0c1fac5e2dddd2543e69a480c86ff6f345c03;hpb=ba1015262cdc912f9d01ab5a76037e65033c54c5;p=collectd.git diff --git a/src/write_riemann.c b/src/write_riemann.c index 86f0c1fa..55699d5d 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -362,7 +362,7 @@ wrr_value_to_event(struct riemann_host const *host, /* {{{ */ { char ds_index[DATA_MAX_NAME_LEN]; - snprintf(ds_index, sizeof(ds_index), "%zu", index); + snprintf(ds_index, sizeof(ds_index), "%" PRIsz, index); riemann_event_string_attribute_add(event, "ds_index", ds_index); }