Migrating logging to LOG() and LOG_DEVEL() in common/*

This commit is contained in:
Alexandre Quesnel
2020-08-02 04:34:31 +00:00
parent bb9d3079c0
commit 2ab3b97ba0
3 changed files with 54 additions and 48 deletions
+3 -2
View File
@@ -26,6 +26,7 @@
#include "os_calls.h"
#include "string_calls.h"
#include "list.h"
#include "log.h"
/*****************************************************************************/
struct list *
@@ -221,11 +222,11 @@ list_dump_items(struct list *self)
if (self->count == 0)
{
g_writeln("List is empty");
LOG_DEVEL(LOG_LEVEL_TRACE, "List is empty");
}
for (index = 0; index < self->count; index++)
{
g_writeln("%d: %p", index, (void *) list_get_item(self, index));
LOG_DEVEL(LOG_LEVEL_TRACE, "%d: %p", index, (void *) list_get_item(self, index));
}
}