From 76138dbebd66e48ddf6db4901dd2bb3c68194be4 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 29 Mar 2019 21:46:03 -0700 Subject: [PATCH] ircd::fs::aio: Remove unused errbuf. --- ircd/fs_aio.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ircd/fs_aio.cc b/ircd/fs_aio.cc index 64204efb3..9f9e6604a 100644 --- a/ircd/fs_aio.cc +++ b/ircd/fs_aio.cc @@ -347,9 +347,9 @@ ircd::fs::aio::request::operator()() stats.errors++; stats.bytes_errors += submitted_bytes; - thread_local char errbuf[2][512]; fmt::sprintf + thread_local char errbuf[512]; fmt::sprintf { - errbuf[0], "fd:%d size:%zu off:%zd op:%u pri:%u #%lu", + errbuf, "fd:%d size:%zu off:%zd op:%u pri:%u #%lu", aio_fildes, aio_nbytes, aio_offset, @@ -360,7 +360,7 @@ ircd::fs::aio::request::operator()() throw std::system_error { - make_error_code(errcode), errbuf[0] + make_error_code(errcode), errbuf }; }