mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 21:31:04 +00:00
Filesystem: Always log mode as an octal (#3729)
Mode is an octal, print it as one.
This commit is contained in:
@@ -73,7 +73,7 @@ static std::map<std::string, FactoryDevice> available_device = {
|
|||||||
namespace Libraries::Kernel {
|
namespace Libraries::Kernel {
|
||||||
|
|
||||||
s32 PS4_SYSV_ABI open(const char* raw_path, s32 flags, u16 mode) {
|
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* h = Common::Singleton<Core::FileSys::HandleTable>::Instance();
|
||||||
auto* mnt = Common::Singleton<Core::FileSys::MntPoints>::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) {
|
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) {
|
if (path == nullptr) {
|
||||||
*__Error() = POSIX_ENOTDIR;
|
*__Error() = POSIX_ENOTDIR;
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user