From 6b6294a7506a33c8f80204dfffadea1dc93dc51f Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Sat, 11 Oct 2025 22:22:35 -0500 Subject: [PATCH] Filesystem: Always log mode as an octal (#3729) Mode is an octal, print it as one. --- src/core/libraries/kernel/file_system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/libraries/kernel/file_system.cpp b/src/core/libraries/kernel/file_system.cpp index 8117d0fa0..2c4b4a670 100644 --- a/src/core/libraries/kernel/file_system.cpp +++ b/src/core/libraries/kernel/file_system.cpp @@ -73,7 +73,7 @@ static std::map available_device = { namespace Libraries::Kernel { s32 PS4_SYSV_ABI open(const char* raw_path, s32 flags, u16 mode) { - LOG_INFO(Kernel_Fs, "path = {} flags = {:#x} mode = {}", raw_path, flags, mode); + LOG_INFO(Kernel_Fs, "path = {} flags = {:#x} mode = {:#o}", raw_path, flags, mode); auto* h = Common::Singleton::Instance(); auto* mnt = Common::Singleton::Instance(); @@ -526,7 +526,7 @@ s64 PS4_SYSV_ABI sceKernelRead(s32 fd, void* buf, u64 nbytes) { } s32 PS4_SYSV_ABI posix_mkdir(const char* path, u16 mode) { - LOG_INFO(Kernel_Fs, "path = {} mode = {}", path, mode); + LOG_INFO(Kernel_Fs, "path = {} mode = {:#o}", path, mode); if (path == nullptr) { *__Error() = POSIX_ENOTDIR; return -1;