X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwrite_riemann.c;h=16533b76f64cfe65e4fe1974ecfb061b8923fba7;hb=7b8851b26928b609ce850e78c1eabb50ff319244;hp=6db3ef58ac88349adfd274cb1d1015e7cf9f4089;hpb=531bad35502b9543074e31e0c80a9f7a6f3a8b27;p=collectd.git diff --git a/src/write_riemann.c b/src/write_riemann.c index 6db3ef58..16533b76 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); }