From e6f0e8ef7594ec0f7bc77edce88dfd33a95c655e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 6 Jun 2015 11:54:48 +0100 Subject: Move write_debug to buffer utils as write_to_debug_buffer --- src/shared_string.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/shared_string.cc') diff --git a/src/shared_string.cc b/src/shared_string.cc index 2aec6920..b594a56f 100644 --- a/src/shared_string.cc +++ b/src/shared_string.cc @@ -1,5 +1,5 @@ #include "shared_string.hh" -#include "debug.hh" +#include "buffer_utils.hh" namespace Kakoune { @@ -28,7 +28,7 @@ void StringRegistry::purge_unused() void StringRegistry::debug_stats() const { - write_debug("Shared Strings stats:"); + write_to_debug_buffer("Shared Strings stats:"); size_t total_refcount = 0; size_t total_size = 0; size_t count = m_strings.size(); @@ -37,8 +37,8 @@ void StringRegistry::debug_stats() const total_refcount += st.m_storage->refcount - 1; total_size += (int)st.m_storage->length; } - write_debug(format(" data size: {}, mean: {}", total_size, (float)total_size/count)); - write_debug(format(" refcounts: {}, mean: {}", total_refcount, (float)total_refcount/count)); + write_to_debug_buffer(format(" data size: {}, mean: {}", total_size, (float)total_size/count)); + write_to_debug_buffer(format(" refcounts: {}, mean: {}", total_refcount, (float)total_refcount/count)); } } -- cgit v1.2.3