diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-10-23 14:41:30 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-10-23 14:58:03 -0400 |
| commit | 4e8df93f4179a684b507d9c712b7e8121fc83119 (patch) | |
| tree | 2d4257714fcad53325789389e22ff35087a7c28c /Source/Core/Common/MemArena.cpp | |
| parent | 4f5c8bb42ae617a5c2823277a4a9ced1df2be445 (diff) | |
Common: Migrate logging to fmt
Continues the migration of our code over to the fmt logger.
Diffstat (limited to 'Source/Core/Common/MemArena.cpp')
| -rw-r--r-- | Source/Core/Common/MemArena.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/Common/MemArena.cpp b/Source/Core/Common/MemArena.cpp index 19085e3d8f..48f9b678e7 100644 --- a/Source/Core/Common/MemArena.cpp +++ b/Source/Core/Common/MemArena.cpp @@ -60,7 +60,7 @@ static int AshmemCreateFileMapping(const char* name, size_t size) if (ret < 0) { close(fd); - NOTICE_LOG(MEMMAP, "Ashmem returned error: 0x%08x", ret); + NOTICE_LOG_FMT(MEMMAP, "Ashmem returned error: {:#010x}", ret); return ret; } return fd; @@ -77,7 +77,7 @@ void MemArena::GrabSHMSegment(size_t size) fd = AshmemCreateFileMapping(("dolphin-emu." + std::to_string(getpid())).c_str(), size); if (fd < 0) { - NOTICE_LOG(MEMMAP, "Ashmem allocation failed"); + NOTICE_LOG_FMT(MEMMAP, "Ashmem allocation failed"); return; } #else @@ -85,12 +85,12 @@ void MemArena::GrabSHMSegment(size_t size) fd = shm_open(file_name.c_str(), O_RDWR | O_CREAT | O_EXCL, 0600); if (fd == -1) { - ERROR_LOG(MEMMAP, "shm_open failed: %s", strerror(errno)); + ERROR_LOG_FMT(MEMMAP, "shm_open failed: {}", strerror(errno)); return; } shm_unlink(file_name.c_str()); if (ftruncate(fd, size) < 0) - ERROR_LOG(MEMMAP, "Failed to allocate low memory space"); + ERROR_LOG_FMT(MEMMAP, "Failed to allocate low memory space"); #endif } @@ -114,7 +114,7 @@ void* MemArena::CreateView(s64 offset, size_t size, void* base) if (retval == MAP_FAILED) { - NOTICE_LOG(MEMMAP, "mmap failed"); + NOTICE_LOG_FMT(MEMMAP, "mmap failed"); return nullptr; } else |
