summaryrefslogtreecommitdiff
path: root/src/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.cc')
-rw-r--r--src/debug.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug.cc b/src/debug.cc
index 713124ee..799bffb8 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -13,7 +13,8 @@ void write_debug(StringView str)
{
if (not BufferManager::has_instance())
{
- fprintf(stderr, "%s\n", (const char*)str.zstr());
+ write(2, str.data(), (int)str.length());
+ write(2, "\n", 1);
return;
}