Add log.c with info() and warn()

This commit is contained in:
Johan Malm 2020-08-12 19:37:44 +01:00
parent 5ea1527558
commit 2a17df0f8b
11 changed files with 68 additions and 17 deletions

View file

@ -1,5 +1,6 @@
#include "labwc.h"
#include "common/spawn.h"
#include "common/log.h"
#include <strings.h>
@ -16,7 +17,6 @@ void action(struct server *server, struct keybind *keybind)
} else if (!strcasecmp(keybind->action, "debug-views")) {
dbg_show_views(server);
} else {
fprintf(stderr, "warn: action (%s) not supported\n",
keybind->action);
warn("action (%s) not supported", keybind->action);
}
}