diff options
author | Max Horn | 2006-03-08 11:37:25 +0000 |
---|---|---|
committer | Max Horn | 2006-03-08 11:37:25 +0000 |
commit | d9a9fac93761a06e78fe7e7091ae5a888c1260f2 (patch) | |
tree | 62da9040abb98b0b49c0ba8a14777f32c6452c4f /engines/gob | |
parent | 14f1337c602a1823d2be26fe5b48bc4722aca681 (diff) | |
download | scummvm-rg350-d9a9fac93761a06e78fe7e7091ae5a888c1260f2.tar.gz scummvm-rg350-d9a9fac93761a06e78fe7e7091ae5a888c1260f2.tar.bz2 scummvm-rg350-d9a9fac93761a06e78fe7e7091ae5a888c1260f2.zip |
Fixed tons of format string warnings for debug/error calls (including several errors where the format string didn't match the number of arguments to the call)
svn-id: r21141
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/dataio.cpp | 2 | ||||
-rw-r--r-- | engines/gob/game.cpp | 2 | ||||
-rw-r--r-- | engines/gob/parse.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/gob/dataio.cpp b/engines/gob/dataio.cpp index c685e88bec..b862302492 100644 --- a/engines/gob/dataio.cpp +++ b/engines/gob/dataio.cpp @@ -114,7 +114,7 @@ int32 DataIO::readChunk(int16 handle, char *buf, int16 size) { offset = _vm->_global->_chunkOffset[file * MAX_SLOT_COUNT + slot] + _vm->_global->_chunkPos[file * MAX_SLOT_COUNT + slot]; - debugC(7, DEBUG_FILEIO, "seek: %ld, %ld", _vm->_global->_chunkOffset[file * MAX_SLOT_COUNT + slot], _vm->_global->_chunkPos[file * MAX_SLOT_COUNT + slot]); + debugC(7, DEBUG_FILEIO, "seek: %d, %d", _vm->_global->_chunkOffset[file * MAX_SLOT_COUNT + slot], _vm->_global->_chunkPos[file * MAX_SLOT_COUNT + slot]); file_getHandle(_vm->_global->_dataFileHandles[file])->seek(offset, SEEK_SET); } diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp index d982c47074..677c0cc5cd 100644 --- a/engines/gob/game.cpp +++ b/engines/gob/game.cpp @@ -139,7 +139,7 @@ char *Game::loadExtData(int16 itemId, int16 *pResWidth, int16 *pResHeight) { handle = commonHandle; } - debugC(7, DEBUG_FILEIO, "off: %ld size: %ld", offset, tableSize); + debugC(7, DEBUG_FILEIO, "off: %d size: %d", offset, tableSize); _vm->_dataio->seekData(handle, offset + tableSize, SEEK_SET); // CHECKME: is the below correct? if (isPacked) diff --git a/engines/gob/parse.cpp b/engines/gob/parse.cpp index 45de528adb..947de49d79 100644 --- a/engines/gob/parse.cpp +++ b/engines/gob/parse.cpp @@ -168,7 +168,7 @@ void Parse::printExpr(char stopToken) { if (operation >= 19 && operation <= 29) { switch (operation) { case 19: - debugN(5, "%l", READ_LE_UINT32(_vm->_global->_inter_execPtr)); + debugN(5, "%d", READ_LE_UINT32(_vm->_global->_inter_execPtr)); _vm->_global->_inter_execPtr += 4; break; @@ -283,7 +283,7 @@ void Parse::printExpr(char stopToken) { break; case 7: - debugN(5, "%"); + debugN(5, "%%"); break; case 8: |