From 98875c5a636f50fe89b9394b8193e86094ae14e0 Mon Sep 17 00:00:00 2001 From: Dusan Durech Date: Fri, 14 Nov 2008 16:38:41 +0100 Subject: uses new macro DEBUG_MSG --- src/base/idManager.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'src/base/idManager.c') 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); } -- cgit v1.2.3