aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress
diff options
context:
space:
mode:
authorMax Horn2010-11-01 16:03:35 +0000
committerMax Horn2010-11-01 16:03:35 +0000
commita984fb17c2be039502eff55472dd6a252e5570df (patch)
tree1153ae5014aea017e5412d35735f81205e21ead5 /engines/lastexpress
parent2af270442144faec859114bcdce7e5659ac7f24b (diff)
downloadscummvm-rg350-a984fb17c2be039502eff55472dd6a252e5570df.tar.gz
scummvm-rg350-a984fb17c2be039502eff55472dd6a252e5570df.tar.bz2
scummvm-rg350-a984fb17c2be039502eff55472dd6a252e5570df.zip
GUI: Add GCC_PRINTF to GUI::Debugger::DebugPrintf & fix resulting warnings
svn-id: r54007
Diffstat (limited to 'engines/lastexpress')
-rw-r--r--engines/lastexpress/debug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lastexpress/debug.cpp b/engines/lastexpress/debug.cpp
index 35a87cf14b..50f0109a3f 100644
--- a/engines/lastexpress/debug.cpp
+++ b/engines/lastexpress/debug.cpp
@@ -343,7 +343,7 @@ bool Debugger::cmdShowFrame(int argc, const char **argv) {
AnimFrame *frame = sequence.getFrame((uint16)getNumber(argv[2]));
if (!frame) {
- DebugPrintf("Invalid frame index: %i\n", filename.c_str());
+ DebugPrintf("Invalid frame index '%s'\n", argv[2]);
resetCommand();
return true;
}
@@ -1012,7 +1012,7 @@ bool Debugger::cmdShow(int argc, const char **argv) {
#define OUTPUT_DUMP(name, text) \
DebugPrintf(#name "\n"); \
DebugPrintf("--------------------------------------------------------------------\n\n"); \
- DebugPrintf(text); \
+ DebugPrintf("%s", text); \
DebugPrintf("\n");
if (argc == 2) {
@@ -1071,7 +1071,7 @@ bool Debugger::cmdEntity(int argc, const char **argv) {
DebugPrintf("Entity %s\n", ENTITY_NAME(index));
DebugPrintf("--------------------------------------------------------------------\n\n");
- DebugPrintf(getEntities()->getData(index)->toString().c_str());
+ DebugPrintf("%s", getEntities()->getData(index)->toString().c_str());
// The Player entity does not have any callback data
if (index != kEntityPlayer) {