aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-08-07 12:36:17 +0000
committerFilippos Karapetis2010-08-07 12:36:17 +0000
commit9aa3f25499e7a7454fc56b17e005842415ac2113 (patch)
tree1d177e31b643174cce5b9f61dc82db992d158cdd /engines
parent8e7cce6e5bbca78556c96ead341e04dfa839ae78 (diff)
downloadscummvm-rg350-9aa3f25499e7a7454fc56b17e005842415ac2113.tar.gz
scummvm-rg350-9aa3f25499e7a7454fc56b17e005842415ac2113.tar.bz2
scummvm-rg350-9aa3f25499e7a7454fc56b17e005842415ac2113.zip
SCI: Improve output when VM_DEBUG_SEND is set
svn-id: r51831
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/vm.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index fe4eb15763..7c989e43f4 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -417,7 +417,9 @@ ExecStack *send_selector(EngineState *s, reg_t send_obj, reg_t work_obj, StackPt
printSendActions = g_sci->checkSelectorBreakpoint(send_obj, selector);
#ifdef VM_DEBUG_SEND
- printf("Send to %04x:%04x, selector %04x (%s):", PRINT_REG(send_obj), selector, g_sci->getKernel()->getSelectorName(selector).c_str());
+ printf("Send to %04x:%04x (%s), selector %04x (%s):", PRINT_REG(send_obj),
+ s->_segMan->getObjectName(send_obj), selector,
+ g_sci->getKernel()->getSelectorName(selector).c_str());
#endif // VM_DEBUG_SEND
ObjVarRef varp;
@@ -445,7 +447,9 @@ ExecStack *send_selector(EngineState *s, reg_t send_obj, reg_t work_obj, StackPt
if (printSendActions && argc) {
reg_t oldReg = *varp.getPointer(s->_segMan);
reg_t newReg = argp[1];
- debug("[write to selector: change %04x:%04x to %04x:%04x]\n", PRINT_REG(oldReg), PRINT_REG(newReg));
+ warning("[write to selector (%s:%s): change %04x:%04x to %04x:%04x]\n",
+ s->_segMan->getObjectName(send_obj), g_sci->getKernel()->getSelectorName(selector).c_str(),
+ PRINT_REG(oldReg), PRINT_REG(newReg));
printSendActions = false;
}