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,4 +1,5 @@
#include "labwc.h"
#include "common/log.h"
int xwl_nr_parents(struct view *view)
{
@ -6,7 +7,7 @@ int xwl_nr_parents(struct view *view)
int i = 0;
if (!s) {
fprintf(stderr, "warn: (%s) no xwayland surface\n", __func__);
warn("(%s) no xwayland surface\n", __func__);
return -1;
}
while (s->parent) {