diff options
author | shennetsind <ind@henn.et> | 2013-05-04 13:32:06 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-04 13:32:06 -0300 |
commit | 416cc5c5acdb51aaeda31bb32e0952b5f5bac554 (patch) | |
tree | 613cb72552c9f1a5bf483a680e78a8c3c81a24d2 /src/common/mapindex.c | |
parent | eac1a8a7537ae7ff78c45261f8916c2886762cd4 (diff) | |
download | hercules-416cc5c5acdb51aaeda31bb32e0952b5f5bac554.tar.gz hercules-416cc5c5acdb51aaeda31bb32e0952b5f5bac554.tar.bz2 hercules-416cc5c5acdb51aaeda31bb32e0952b5f5bac554.tar.xz hercules-416cc5c5acdb51aaeda31bb32e0952b5f5bac554.zip |
Enabling a temporary debug setup for mapindex
so when this thing finds a unknown id we can actually know where it came from.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common/mapindex.c')
-rw-r--r-- | src/common/mapindex.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/mapindex.c b/src/common/mapindex.c index edf9f26f8..6af5f134f 100644 --- a/src/common/mapindex.c +++ b/src/common/mapindex.c @@ -133,10 +133,9 @@ unsigned short mapindex_name2id(const char* name) return 0; } -const char* mapindex_id2name(unsigned short id) -{ +const char* mapindex_id2name_sub(unsigned short id,const char *file, int line, const char *func) { if (id > MAX_MAPINDEX || !mapindex_exists(id)) { - ShowDebug("mapindex_id2name: Requested name for non-existant map index [%d] in cache.\n", id); + ShowDebug("mapindex_id2name: Requested name for non-existant map index [%d] in cache. %s:%s:%d\n", id,file,func,line); return indexes[0].name; // dummy empty string so that the callee doesn't crash } return indexes[id].name; |