X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fgmond.c;h=2162463b81b0af4f9539b3e55e430604c80b2361;hp=c6804276be4ca7497b88fe621e48cd08c4e12265;hb=7b8851b26928b609ce850e78c1eabb50ff319244;hpb=d45f9cdfc084fc5e8783073b993d58b84deb5d58 diff --git a/src/gmond.c b/src/gmond.c index c6804276..2162463b 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -417,8 +417,8 @@ static staging_entry_t *staging_entry_get(const char *host, /* {{{ */ if (staging_tree == NULL) return NULL; - ssnprintf(key, sizeof(key), "%s/%s/%s", host, type, - (type_instance != NULL) ? type_instance : ""); + snprintf(key, sizeof(key), "%s/%s/%s", host, type, + (type_instance != NULL) ? type_instance : ""); se = NULL; status = c_avl_get(staging_tree, key, (void *)&se); @@ -472,7 +472,8 @@ static int staging_entry_update(const char *host, const char *name, /* {{{ */ } if (ds->ds_num <= ds_index) { - ERROR("gmond plugin: Invalid index %zu: %s has only %zu data source(s).", + ERROR("gmond plugin: Invalid index %" PRIsz ": %s has only %" PRIsz + " data source(s).", ds_index, ds->type, ds->ds_num); return -1; }