Implement slog() and the LOG() macro, convert printf() to LOG()

This commit is contained in:
Michael Stapelberg
2009-03-06 06:46:43 +01:00
parent 0831f3e129
commit 96ac9f9066
9 changed files with 175 additions and 148 deletions

View File

@ -115,7 +115,7 @@ void load_configuration(const char *override_configpath) {
if (!rest || *rest != ' ')
die("Invalid binding\n");
rest++;
printf("keycode = %d, modifiers = %d, command = *%s*\n", keycode, modifiers, rest);
LOG("keycode = %d, modifiers = %d, command = *%s*\n", keycode, modifiers, rest);
Binding *new = smalloc(sizeof(Binding));
new->keycode = keycode;
new->mods = modifiers;