X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_latency.c;h=6e4f87328e0fb6b1a8a164b261bb9131609d9172;hb=7c9d772c992647fcba64a96800c146eb9f1647f8;hp=625fc42e82bc35bffc05ba925d5f25b59dbc81dd;hpb=d45f9cdfc084fc5e8783073b993d58b84deb5d58;p=collectd.git diff --git a/src/utils_latency.c b/src/utils_latency.c index 625fc42e..6e4f8732 100644 --- a/src/utils_latency.c +++ b/src/utils_latency.c @@ -65,7 +65,7 @@ struct latency_counter_s { * When a value above this range is added, Histogram's range is increased by * increasing the bin width (note that number of bins remains always at 1000). * This operation of increasing bin width is little expensive as each bin need -* to be visited to update it's count. To reduce frequent change of bin width, +* to be visited to update its count. To reduce frequent change of bin width, * new bin width will be the next nearest power of 2. Example: 2, 4, 8, 16, 32, * 64, 128, 256, 512, 1024, 2048, 5086, ... * @@ -156,7 +156,7 @@ void latency_counter_add(latency_counter_t *lc, cdtime_t latency) /* {{{ */ change_bin_width(lc, latency); bin = (latency - 1) / lc->bin_width; if (bin >= HISTOGRAM_NUM_BINS) { - ERROR("utils_latency: latency_counter_add: Invalid bin: %" PRIu64, bin); + P_ERROR("latency_counter_add: Invalid bin: %" PRIu64, bin); return; } }