X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=16533b76f64cfe65e4fe1974ecfb061b8923fba7;hp=6db3ef58ac88349adfd274cb1d1015e7cf9f4089;hb=7b8851b26928b609ce850e78c1eabb50ff319244;hpb=68c08bd380d63281f5707e893c27f952c5fde1d8 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); }