log: removed DEBUG() and FATAL()

Use GLib the logging functions g_debug(), g_error() instead.
This commit is contained in:
Max Kellermann
2009-03-15 18:23:00 +01:00
parent 9e30dfb9c1
commit a899c210b9
9 changed files with 22 additions and 49 deletions

View File

@@ -19,7 +19,6 @@
#include "permission.h"
#include "conf.h"
#include "log.h"
#include <glib.h>
@@ -59,7 +58,7 @@ static unsigned parsePermissions(const char *string)
} else if (strcmp(temp, PERMISSION_ADMIN_STRING) == 0) {
permission |= PERMISSION_ADMIN;
} else {
FATAL("unknown permission \"%s\"\n", temp);
g_error("unknown permission \"%s\"", temp);
}
}
@@ -90,10 +89,10 @@ void initPermissions(void)
strchr(param->value, PERMISSION_PASSWORD_CHAR);
if (separator == NULL)
FATAL("\"%c\" not found in password string "
"\"%s\", line %i\n",
PERMISSION_PASSWORD_CHAR,
param->value, param->line);
g_error("\"%c\" not found in password string "
"\"%s\", line %i",
PERMISSION_PASSWORD_CHAR,
param->value, param->line);
password = g_strndup(param->value,
separator - param->value);