diff options
| author | Léo Lam <leo@leolam.fr> | 2020-10-26 19:01:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-26 19:01:26 +0100 |
| commit | 07e6d008bd6c34b8af07247935bc8aa6abc596df (patch) | |
| tree | e5084fc3c855e85bcff41046533ec765135e3656 /Source/Core/Common/MemArena.cpp | |
| parent | 7f66de062c3c0b7d0f1e49682f8663dc978e76fc (diff) | |
| parent | 4e8df93f4179a684b507d9c712b7e8121fc83119 (diff) | |
Merge pull request #9187 from lioncash/commonlog
Common: Migrate logging to fmt
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 |
