From c86f5a536072da82a73024ccd640efc11e1ce3d3 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Sat, 21 Aug 2021 20:10:13 +0100 Subject: Fix use of iostream in last commit. --- include/llfio/v2.0/detail/impl/map_handle.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llfio/v2.0/detail/impl/map_handle.ipp b/include/llfio/v2.0/detail/impl/map_handle.ipp index d422f129..90dcfc4a 100644 --- a/include/llfio/v2.0/detail/impl/map_handle.ipp +++ b/include/llfio/v2.0/detail/impl/map_handle.ipp @@ -125,7 +125,7 @@ namespace detail if(-1 == ::munmap(p->addr, _bytes)) #endif { - std::cerr << "munmap failed with " << strerror(errno) << ". addr was " << p->addr << " bytes was " << _bytes << std::endl; + fprintf(stderr, "munmap failed with %s. addr was %p bytes was %zu\n", strerror(errno), p->addr, _bytes); LLFIO_LOG_FATAL(nullptr, "FATAL: map_handle cache failed to trim a map! If on Linux, you may have exceeded the " "64k VMA process limit, set the LLFIO_DEBUG_LINUX_MUNMAP macro at the top of posix/map_handle.ipp to cause dumping of VMAs to " -- cgit v1.2.3