aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorMax Horn2003-07-13 16:22:17 +0000
committerMax Horn2003-07-13 16:22:17 +0000
commit963ecad36275f338fffb1619a0e8535016352d61 (patch)
treec7eea83ae283decd62e2fcfb5ecd1fa3dca6c1dd /scumm/resource.cpp
parent0642d2df98ed3b6c0251acf95b58674b1713bb9f (diff)
downloadscummvm-rg350-963ecad36275f338fffb1619a0e8535016352d61.tar.gz
scummvm-rg350-963ecad36275f338fffb1619a0e8535016352d61.tar.bz2
scummvm-rg350-963ecad36275f338fffb1619a0e8535016352d61.zip
debug/warning/error all automatically output a newline
svn-id: r8991
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 8b9087c35b..2be823488a 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -886,7 +886,7 @@ int Scumm::readSoundResource(int type, int idx) {
return 1;
} else {
- fprintf(stderr, "WARNING: Unrecognized base tag 0x%08x in sound %d\n", basetag, idx);
+ warning("Unrecognized base tag 0x%08x in sound %d", basetag, idx);
}
res.roomoffs[type][idx] = 0xFFFFFFFF;
return 0;
@@ -1558,7 +1558,7 @@ void Scumm::resourceStats() {
}
}
- debug(1, "Total allocated size=%d, locked=%d(%d)\n", _allocatedSize, lockedSize, lockedNum);
+ debug(1, "Total allocated size=%d, locked=%d(%d)", _allocatedSize, lockedSize, lockedNum);
}
void Scumm::readMAXS() {
@@ -1671,7 +1671,7 @@ void Scumm::allocateArrays() {
_inventory = (uint16 *)calloc(_numInventory, sizeof(uint16));
_verbs = (VerbSlot *)calloc(_numVerbs, sizeof(VerbSlot));
_objs = (ObjectData *)calloc(_numLocalObjects, sizeof(ObjectData));
- debug(2, "Allocated %d space in numObjects\n", _numLocalObjects);
+ debug(2, "Allocated %d space in numObjects", _numLocalObjects);
_scummVars = (int32 *)calloc(_numVariables, sizeof(int32));
_bitVars = (byte *)calloc(_numBitVariables >> 3, 1);