From d0f420de10827e20ac20cee5e5a124aaa198af47 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 7 Mar 2020 14:00:15 +1000 Subject: [PATCH] CDROM: Log invalid command identifiers --- src/core/cdrom.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index c01752586..22d3935b2 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -898,8 +898,12 @@ void CDROM::ExecuteCommand() break; default: - Panic("Unknown command"); - break; + { + Log_ErrorPrintf("Unknown CDROM command 0x%04X with %u parameters, please report", static_cast(m_command), + m_param_fifo.GetSize()); + Panic("Unknown CDROM command"); + } + break; } } @@ -951,7 +955,7 @@ void CDROM::ExecuteTestCommand(u8 subcommand) default: { - Log_ErrorPrintf("Unknown test command 0x%02X", subcommand); + Log_ErrorPrintf("Unknown test command 0x%02X, %u parameters", subcommand, m_param_fifo.GetSize()); Panic("Unknown test command"); return; }