X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=55699d5dca67f816e72629f0ea4744605b09048f;hp=86f0c1fac5e2dddd2543e69a480c86ff6f345c03;hb=4c4988b1c5d33ed70b2d6d6e5a4eae13cab9255b;hpb=8e5e2e927f9cf051ef210473b1b48ff62d81f585 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); }