cellCamera: improve error logging

This commit is contained in:
Megamouse
2026-03-08 13:54:25 +01:00
parent 43b295892f
commit c38bf70464
2 changed files with 5 additions and 6 deletions
+5 -5
View File
@@ -919,7 +919,7 @@ error_code cellCameraGetAttribute(s32 dev_num, s32 attrib, vm::ptr<u32> arg1, vm
if (!check_dev_num(dev_num)) if (!check_dev_num(dev_num))
{ {
return CELL_CAMERA_ERROR_PARAM; return { CELL_CAMERA_ERROR_PARAM, "dev_num=%d", dev_num };
} }
if (g_cfg.io.camera == camera_handler::null) if (g_cfg.io.camera == camera_handler::null)
@@ -935,7 +935,7 @@ error_code cellCameraGetAttribute(s32 dev_num, s32 attrib, vm::ptr<u32> arg1, vm
if (!arg1) if (!arg1)
{ {
return CELL_CAMERA_ERROR_PARAM; return { CELL_CAMERA_ERROR_PARAM, "arg1=null" };
} }
if (error_code error = check_resolution(dev_num)) if (error_code error = check_resolution(dev_num))
@@ -952,7 +952,7 @@ error_code cellCameraGetAttribute(s32 dev_num, s32 attrib, vm::ptr<u32> arg1, vm
if (!attr_name) // invalid attributes don't have a name if (!attr_name) // invalid attributes don't have a name
{ {
return CELL_CAMERA_ERROR_PARAM; return { CELL_CAMERA_ERROR_PARAM, "attrib=0x%x", attrib };
} }
if (arg1) if (arg1)
@@ -983,7 +983,7 @@ error_code cellCameraSetAttribute(s32 dev_num, s32 attrib, u32 arg1, u32 arg2)
if (!check_dev_num(dev_num)) if (!check_dev_num(dev_num))
{ {
return CELL_CAMERA_ERROR_PARAM; return { CELL_CAMERA_ERROR_PARAM, "dev_num=%d", dev_num };
} }
if (g_cfg.io.camera == camera_handler::null) if (g_cfg.io.camera == camera_handler::null)
@@ -1004,7 +1004,7 @@ error_code cellCameraSetAttribute(s32 dev_num, s32 attrib, u32 arg1, u32 arg2)
if (!attr_name) // invalid attributes don't have a name if (!attr_name) // invalid attributes don't have a name
{ {
return CELL_CAMERA_ERROR_PARAM; return { CELL_CAMERA_ERROR_PARAM, "attrib=0x%x", attrib };
} }
g_camera.set_attr(attrib, arg1, arg2); g_camera.set_attr(attrib, arg1, arg2);
-1
View File
@@ -67,7 +67,6 @@ u32 sys_gamepad_ycon_is_gem(vm::ptr<u8> in, vm::ptr<u8> out)
// syscall(621,packet_id,u8 *in,u8 *out) Talk:LV2_Functions_and_Syscalls#Syscall_621_.280x26D.29 gamepad_if usage // syscall(621,packet_id,u8 *in,u8 *out) Talk:LV2_Functions_and_Syscalls#Syscall_621_.280x26D.29 gamepad_if usage
u32 sys_gamepad_ycon_if(u8 packet_id, vm::ptr<u8> in, vm::ptr<u8> out) u32 sys_gamepad_ycon_if(u8 packet_id, vm::ptr<u8> in, vm::ptr<u8> out)
{ {
switch (packet_id) switch (packet_id)
{ {
case 0: case 0: