diff options
| author | Dusan Durech <dusan.d@centrum.sk> | 2008-11-14 16:38:41 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan.d@centrum.sk> | 2008-11-14 16:38:41 +0100 |
| commit | 98875c5a636f50fe89b9394b8193e86094ae14e0 (patch) | |
| tree | 305f1a3c884763aff65f8bcd12ff9d2f648a04cd /src/base/idManager.c | |
| parent | 957f3411170ca1d5f30ee2e2c4e25393195cce75 (diff) | |
uses new macro DEBUG_MSG
Diffstat (limited to 'src/base/idManager.c')
| -rw-r--r-- | src/base/idManager.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/base/idManager.c b/src/base/idManager.c index 7f82282..09d3fc9 100644 --- a/src/base/idManager.c +++ b/src/base/idManager.c @@ -37,9 +37,9 @@ void initListID() { listID = newList(); lastID = 0; -#ifdef DEBUG - printf(_("Starting ID manger\n")); -#endif + + DEBUG_MSG(_("Starting ID manger\n")); + } int isRegisterID(int id) @@ -176,24 +176,22 @@ void infoID(int id) index = isRegisterID(id); if (index == -1) { -#ifdef DEBUG - printf(_("ID %d does not exist\n"), id); -#endif + DEBUG_MSG(_("ID %d does not exist\n"), id); + return; } this = listID->list[index]; -#ifdef DEBUG - printf(_("ID %d (count %d)\n"), this->id, this->count); -#endif + + DEBUG_MSG(_("ID %d (count %d)\n"), this->id, this->count); + return; } void quitListID() { -#ifdef DEBUG - printf(_("Quitting ID manger\n")); -#endif + DEBUG_MSG(_("Quitting ID manger\n")); + assert(listID != NULL); destroyListItem(listID, destroyIdItem); } |