From b7f68b656f1a0a5ab3eb024f125fba98e68d9966 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 12 Feb 2025 16:52:07 -0500 Subject: Fix debug statements to ini.c --- src/lib/core/ini.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/lib/core/ini.c b/src/lib/core/ini.c index 14f337d..4f449c6 100644 --- a/src/lib/core/ini.c +++ b/src/lib/core/ini.c @@ -490,18 +490,12 @@ char *unquote(char *s) { void ini_free(struct INIFILE **ini) { for (size_t section = 0; section < (*ini)->section_count; section++) { -#ifdef DEBUG - SYSERROR("freeing section: %s", (*ini)->section[section]->key); -#endif + SYSDEBUG("freeing section: %s", (*ini)->section[section]->key); for (size_t data = 0; data < (*ini)->section[section]->data_count; data++) { if ((*ini)->section[section]->data[data]) { -#ifdef DEBUG - SYSERROR("freeing data key: %s", (*ini)->section[section]->data[data]->key); -#endif + SYSDEBUG("freeing data key: %s", (*ini)->section[section]->data[data]->key); guard_free((*ini)->section[section]->data[data]->key); -#ifdef DEBUG - SYSERROR("freeing data value: %s", (*ini)->section[section]->data[data]->value); -#endif + SYSDEBUG("freeing data value: %s", (*ini)->section[section]->data[data]->value); guard_free((*ini)->section[section]->data[data]->value); guard_free((*ini)->section[section]->data[data]); } -- cgit