DEBUG("utils_latency: change_bin_width: fixed all bins");
}
- DEBUG("utils_latency: change_bin_width: val-[%ld], oldBinWidth-[%d], "
+ DEBUG("utils_latency: change_bin_width: val-[%zu], oldBinWidth-[%d], "
"newBinWidth-[%d], required_bin_width-[%f], "
"required_bin_width_logbase2-[%f]",
val, old_bin_width, new_bin_width, required_bin_width,
lc = malloc (sizeof (*lc));
if (lc == NULL)
return (NULL);
+ memset (lc, 0, sizeof (*lc));
latency_counter_reset (lc);
lc->bin_width = HISTOGRAM_DEFAULT_BIN_WIDTH;