mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Remove src/common/log.c
Use wlr_log() instead
This commit is contained in:
parent
20fd8f59a7
commit
82e47ac1f5
20 changed files with 28 additions and 65 deletions
|
|
@ -207,7 +207,7 @@ parse_xml(const char *filename, struct menu *menu)
|
|||
|
||||
stream = fopen(menuxml, "r");
|
||||
if (!stream) {
|
||||
warn("cannot read (%s)", menuxml);
|
||||
wlr_log(WLR_ERROR, "cannot read %s", menuxml);
|
||||
return;
|
||||
}
|
||||
wlr_log(WLR_INFO, "read menu file %s", menuxml);
|
||||
|
|
@ -222,7 +222,7 @@ parse_xml(const char *filename, struct menu *menu)
|
|||
fclose(stream);
|
||||
xmlDoc *d = xmlParseMemory(b.buf, b.len);
|
||||
if (!d) {
|
||||
warn("xmlParseMemory()");
|
||||
wlr_log(WLR_ERROR, "xmlParseMemory()");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
xml_tree_walk(xmlDocGetRootElement(d), menu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue