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; }