summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/fs/fs_user.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp
index 0ad44e55e..ae52083f9 100644
--- a/src/core/hle/service/fs/fs_user.cpp
+++ b/src/core/hle/service/fs/fs_user.cpp
@@ -115,7 +115,8 @@ static void OpenFileDirectly(Service::Interface* self) {
115 115
116 ResultVal<ArchiveHandle> archive_handle = OpenArchive(archive_id, archive_path); 116 ResultVal<ArchiveHandle> archive_handle = OpenArchive(archive_id, archive_path);
117 if (archive_handle.Failed()) { 117 if (archive_handle.Failed()) {
118 LOG_ERROR(Service_FS, "failed to get a handle for archive"); 118 LOG_ERROR(Service_FS, "failed to get a handle for archive archive_id=0x%08X archive_path=%s",
119 archive_id, archive_path.DebugStr().c_str());
119 cmd_buff[1] = archive_handle.Code().raw; 120 cmd_buff[1] = archive_handle.Code().raw;
120 cmd_buff[3] = 0; 121 cmd_buff[3] = 0;
121 return; 122 return;
@@ -128,7 +129,8 @@ static void OpenFileDirectly(Service::Interface* self) {
128 cmd_buff[3] = Kernel::g_handle_table.Create(*file_res).MoveFrom(); 129 cmd_buff[3] = Kernel::g_handle_table.Create(*file_res).MoveFrom();
129 } else { 130 } else {
130 cmd_buff[3] = 0; 131 cmd_buff[3] = 0;
131 LOG_ERROR(Service_FS, "failed to get a handle for file %s", file_path.DebugStr().c_str()); 132 LOG_ERROR(Service_FS, "failed to get a handle for file %s mode=%u attributes=%d",
133 file_path.DebugStr().c_str(), mode.hex, attributes);
132 } 134 }
133} 135}
134 136
@@ -347,7 +349,8 @@ static void OpenDirectory(Service::Interface* self) {
347 if (dir_res.Succeeded()) { 349 if (dir_res.Succeeded()) {
348 cmd_buff[3] = Kernel::g_handle_table.Create(*dir_res).MoveFrom(); 350 cmd_buff[3] = Kernel::g_handle_table.Create(*dir_res).MoveFrom();
349 } else { 351 } else {
350 LOG_ERROR(Service_FS, "failed to get a handle for directory"); 352 LOG_ERROR(Service_FS, "failed to get a handle for directory type=%d size=%d data=%s",
353 dirname_type, dirname_size, dir_path.DebugStr().c_str());
351 } 354 }
352} 355}
353 356
@@ -382,7 +385,8 @@ static void OpenArchive(Service::Interface* self) {
382 cmd_buff[3] = (*handle >> 32) & 0xFFFFFFFF; 385 cmd_buff[3] = (*handle >> 32) & 0xFFFFFFFF;
383 } else { 386 } else {
384 cmd_buff[2] = cmd_buff[3] = 0; 387 cmd_buff[2] = cmd_buff[3] = 0;
385 LOG_ERROR(Service_FS, "failed to get a handle for archive"); 388 LOG_ERROR(Service_FS, "failed to get a handle for archive archive_id=0x%08X archive_path=%s",
389 archive_id, archive_path.DebugStr().c_str());
386 } 390 }
387} 391}
388 392