Remove src/common/log.c

Use wlr_log() instead
This commit is contained in:
Johan Malm 2021-07-23 21:15:55 +01:00
parent 20fd8f59a7
commit 82e47ac1f5
20 changed files with 28 additions and 65 deletions

View file

@ -3,8 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common/log.h"
#include <wlr/util/log.h>
#include "config/keybind.h"
#include "config/rcxml.h"
@ -39,7 +38,7 @@ keybind_create(const char *keybind)
xkb_keysym_t sym = xkb_keysym_from_name(
symname, XKB_KEYSYM_CASE_INSENSITIVE);
if (sym == XKB_KEY_NoSymbol) {
warn("unknown keybind (%s)", symname);
wlr_log(WLR_ERROR, "unknown keybind (%s)", symname);
free(k);
k = NULL;
break;

View file

@ -12,7 +12,6 @@
#include <wayland-server-core.h>
#include <wlr/util/log.h>
#include "common/dir.h"
#include "common/log.h"
#include "common/nodename.h"
#include "common/string-helpers.h"
#include "common/zfree.h"
@ -227,7 +226,7 @@ rcxml_parse_xml(struct buf *b)
{
xmlDoc *d = xmlParseMemory(b->buf, b->len);
if (!d) {
warn("xmlParseMemory()");
wlr_log(WLR_ERROR, "xmlParseMemory()");
exit(EXIT_FAILURE);
}
xml_tree_walk(xmlDocGetRootElement(d));
@ -330,7 +329,7 @@ rcxml_read(const char *filename)
/* Reading file into buffer before parsing - better for unit tests */
stream = fopen(rcxml, "r");
if (!stream) {
warn("cannot read (%s)", rcxml);
wlr_log(WLR_ERROR, "cannot read (%s)", rcxml);
goto no_config;
}
wlr_log(WLR_INFO, "read config file %s", rcxml);

View file

@ -7,7 +7,6 @@
#include <sys/stat.h>
#include <wlr/util/log.h>
#include "common/dir.h"
#include "common/log.h"
#include "common/spawn.h"
#include "common/string-helpers.h"
@ -99,7 +98,7 @@ session_autostart_init(void)
return;
}
if (!isfile(autostart)) {
warn("no autostart file");
wlr_log(WLR_ERROR, "no autostart file");
goto out;
}
wlr_log(WLR_INFO, "run autostart file %s", autostart);