diff options
author | Johannes Schickel | 2009-05-18 11:56:00 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-18 11:56:00 +0000 |
commit | 3406790cc310881ca6f60d4f3c99ad6df4fae7ef (patch) | |
tree | b1a2e970e9e5efc5bbb0db708bcc867ee259ed23 /engines | |
parent | 220fe60424c43890178cefcc636409a49942c865 (diff) | |
download | scummvm-rg350-3406790cc310881ca6f60d4f3c99ad6df4fae7ef.tar.gz scummvm-rg350-3406790cc310881ca6f60d4f3c99ad6df4fae7ef.tar.bz2 scummvm-rg350-3406790cc310881ca6f60d4f3c99ad6df4fae7ef.zip |
Don't print __FILE__,__LINE__ in *_list related debug output, it would only print klists.cpp and the according line anyway.
svn-id: r40681
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/klists.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/klists.cpp b/engines/sci/engine/klists.cpp index 662351435e..57b25abff5 100644 --- a/engines/sci/engine/klists.cpp +++ b/engines/sci/engine/klists.cpp @@ -38,14 +38,14 @@ Node *lookup_node(EngineState *s, reg_t addr) { // seem to have any apparent ill-effects, though, so it's been changed to non-fatal, for now //sciprintf("%s, L%d: Attempt to use non-node "PREG" as list node\n", __FILE__, __LINE__, PRINT_REG(addr)); //script_debug_flag = script_error_flag = 1; - warning("%s, L%d: Attempt to use non-node "PREG" as list node", __FILE__, __LINE__, PRINT_REG(addr)); + warning("Attempt to use non-node "PREG" as list node", PRINT_REG(addr)); return NULL; } NodeTable *nt = (NodeTable *)mobj; if (!ENTRY_IS_VALID(nt, addr.offset)) { - sciprintf("%s, L%d: Attempt to use non-node "PREG" as list node", __FILE__, __LINE__, PRINT_REG(addr)); + sciprintf("Attempt to use non-node "PREG" as list node\n", PRINT_REG(addr)); script_debug_flag = script_error_flag = 1; return NULL; } @@ -57,7 +57,7 @@ List *lookup_list(EngineState *s, reg_t addr) { MemObject *mobj = GET_SEGMENT(*s->seg_manager, addr.segment, MEM_OBJ_LISTS); if (!mobj) { - sciprintf("%s, L%d: Attempt to use non-list "PREG" as list", __FILE__, __LINE__, PRINT_REG(addr)); + sciprintf("Attempt to use non-list "PREG" as list\n", PRINT_REG(addr)); script_debug_flag = script_error_flag = 1; return NULL; } @@ -65,7 +65,7 @@ List *lookup_list(EngineState *s, reg_t addr) { ListTable *lt = (ListTable *)mobj; if (!ENTRY_IS_VALID(lt, addr.offset)) { - sciprintf("%s, L%d: Attempt to use non-list "PREG" as list\n", __FILE__, __LINE__, PRINT_REG(addr)); + sciprintf("Attempt to use non-list "PREG" as list\n", PRINT_REG(addr)); script_debug_flag = script_error_flag = 1; return NULL; } |