[C] Fix test error in histogram logging.