summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/MappedFile.cpp
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2025-07-28 08:49:18 -0400
committerkat <kat@vector35.com>2025-07-28 08:52:47 -0400
commitecfc947a39aa8be76b5f378c77b845622bca8b5f (patch)
tree8dd9cd7d76df935bd7799c87c4748ec1adcbde2c /view/sharedcache/core/MappedFile.cpp
parent0d031494987b6e1f36ebaaf3b0b92c278cd8ca6b (diff)
Improve and migrate to fmt logging functions in Mach-O/KernelCache/SharedCache
Diffstat (limited to 'view/sharedcache/core/MappedFile.cpp')
-rw-r--r--view/sharedcache/core/MappedFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/sharedcache/core/MappedFile.cpp b/view/sharedcache/core/MappedFile.cpp
index e0b805bc..21bda4f8 100644
--- a/view/sharedcache/core/MappedFile.cpp
+++ b/view/sharedcache/core/MappedFile.cpp
@@ -89,7 +89,7 @@ MapStatus MappedFile::Map()
void* result = mmap(nullptr, len, PROT_READ | PROT_WRITE, MAP_PRIVATE, fileno(fd), 0u);
if (result == MAP_FAILED)
{
- BinaryNinja::LogError("mmap failed: %s", strerror(errno)); // Use errno to log the reason
+ BinaryNinja::LogErrorF("mmap failed: {}", strerror(errno)); // Use errno to log the reason
return MapStatus::Error;
}
_mmap = static_cast<uint8_t*>(result);