Filesystem: Always log mode as an octal (#3729)

Mode is an octal, print it as one.
This commit is contained in:
Stephen Miller
2025-10-11 22:22:35 -05:00
committed by GitHub
parent 999960a6e6
commit 6b6294a750

View File

@@ -73,7 +73,7 @@ static std::map<std::string, FactoryDevice> 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<Core::FileSys::HandleTable>::Instance();
auto* mnt = Common::Singleton<Core::FileSys::MntPoints>::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;