aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorMax Horn2010-11-01 16:04:47 +0000
committerMax Horn2010-11-01 16:04:47 +0000
commit9a350f43980d82ec001c077b28c035350478fe8e (patch)
tree3f9beb48843afcfff576b12f770c01e0eac72be9 /engines/tinsel
parent459ef850684e9f11f2dbb5b129a674048a7cef81 (diff)
downloadscummvm-rg350-9a350f43980d82ec001c077b28c035350478fe8e.tar.gz
scummvm-rg350-9a350f43980d82ec001c077b28c035350478fe8e.tar.bz2
scummvm-rg350-9a350f43980d82ec001c077b28c035350478fe8e.zip
ENGINES: Get rid of some (f)printfs
svn-id: r54011
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/coroutine.cpp6
-rw-r--r--engines/tinsel/heapmem.cpp2
-rw-r--r--engines/tinsel/music.cpp2
-rw-r--r--engines/tinsel/object.cpp2
-rw-r--r--engines/tinsel/palette.cpp4
-rw-r--r--engines/tinsel/sched.cpp2
6 files changed, 9 insertions, 9 deletions
diff --git a/engines/tinsel/coroutine.cpp b/engines/tinsel/coroutine.cpp
index a1871f90b0..72f39bb21e 100644
--- a/engines/tinsel/coroutine.cpp
+++ b/engines/tinsel/coroutine.cpp
@@ -47,7 +47,7 @@ static void changeCoroStats(const char *func, int change) {
}
static void displayCoroStats() {
- printf("%d active coros\n", s_coroCount);
+ debug("%d active coros", s_coroCount);
// Loop over s_coroFuncs and print info about active coros
if (!s_coroFuncs)
@@ -55,7 +55,7 @@ static void displayCoroStats() {
for (CoroHashMap::const_iterator it = s_coroFuncs->begin();
it != s_coroFuncs->end(); ++it) {
if (it->_value != 0)
- printf(" %3d x %s\n", it->_value, it->_key.c_str());
+ debug(" %3d x %s", it->_value, it->_key.c_str());
}
}
@@ -75,7 +75,7 @@ CoroBaseContext::~CoroBaseContext() {
#if COROUTINE_DEBUG
s_coroCount--;
changeCoroStats(_funcName, -1);
- printf("Deleting coro in %s at %p (subctx %p)\n ",
+ debug("Deleting coro in %s at %p (subctx %p)",
_funcName, (void *)this, (void *)_subctx);
displayCoroStats();
#endif
diff --git a/engines/tinsel/heapmem.cpp b/engines/tinsel/heapmem.cpp
index fa05c3717b..83bbf6affa 100644
--- a/engines/tinsel/heapmem.cpp
+++ b/engines/tinsel/heapmem.cpp
@@ -94,7 +94,7 @@ static void MemoryStats() {
}
}
- printf("%d nodes used, %d alloced, %d locked; %d bytes locked, %d used\n",
+ debug("%d nodes used, %d alloced, %d locked; %d bytes locked, %d used",
usedNodes, allocedNodes, lockedNodes, lockedSize, totalSize);
}
#endif
diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp
index 9560624e05..f21c41a843 100644
--- a/engines/tinsel/music.cpp
+++ b/engines/tinsel/music.cpp
@@ -382,7 +382,7 @@ void OpenMidiFiles() {
assert(curTrack < ARRAYSIZE(midiOffsets));
midiOffsets[curTrack] = curOffset + (4 * curTrack);
- //printf("%d: %d\n", curTrack, midiOffsets[curTrack]);
+ //debug("%d: %d", curTrack, midiOffsets[curTrack]);
songLength = midiStream.readUint32LE();
curOffset += songLength;
diff --git a/engines/tinsel/object.cpp b/engines/tinsel/object.cpp
index 7a93a0b30a..b67d20fa93 100644
--- a/engines/tinsel/object.cpp
+++ b/engines/tinsel/object.cpp
@@ -94,7 +94,7 @@ void KillAllObjects() {
*/
void ObjectStats() {
- printf("%i objects of %i used.\n", maxObj, NUM_OBJECTS);
+ debug("%i objects of %i used", maxObj, NUM_OBJECTS);
}
#endif
diff --git a/engines/tinsel/palette.cpp b/engines/tinsel/palette.cpp
index ec518d9e68..528adcd048 100644
--- a/engines/tinsel/palette.cpp
+++ b/engines/tinsel/palette.cpp
@@ -198,8 +198,8 @@ void ResetPalAllocator() {
* Shows the maximum number of palettes used at once.
*/
void PaletteStats() {
- printf("%i palettes of %i used.\n", maxPals, NUM_PALETTES);
- printf("%i DAC queue entries of %i used.\n", maxDACQ, VDACQLENGTH);
+ debug("%i palettes of %i used", maxPals, NUM_PALETTES);
+ debug("%i DAC queue entries of %i used", maxDACQ, VDACQLENGTH);
}
#endif
diff --git a/engines/tinsel/sched.cpp b/engines/tinsel/sched.cpp
index 97e41e2a7d..08a68d2d4a 100644
--- a/engines/tinsel/sched.cpp
+++ b/engines/tinsel/sched.cpp
@@ -132,7 +132,7 @@ void Scheduler::reset() {
* Shows the maximum number of process used at once.
*/
void Scheduler::printStats() {
- printf("%i process of %i used.\n", maxProcs, NUM_PROCESS);
+ debug("%i process of %i used", maxProcs, NUM_PROCESS);
}
#endif