X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fwgt-config.c;h=1fb61bcea57c3b9c8489253ded041aa89fce8eb9;hb=ddd10705d70b598160a41d197f364d2f792359f5;hp=04548c3121e20d02fb1a5bd16475f8a7559bf8d4;hpb=f3d64b7c741677cd28e2a11deed67196cd02b46a;p=src%2Fapp-framework-main.git diff --git a/src/wgt-config.c b/src/wgt-config.c index 04548c3..1fb61bc 100644 --- a/src/wgt-config.c +++ b/src/wgt-config.c @@ -1,6 +1,8 @@ /* Copyright 2015 IoT.bzh + author: José Bollo + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -16,7 +18,6 @@ #include #include -#include #include #include @@ -24,6 +25,7 @@ #include #include +#include "verbose.h" #include "wgt.h" #include "wgt-config.h" @@ -115,13 +117,13 @@ int wgt_config_open(struct wgt *wgt) assert(!configxml); fd = wgt_open_read(wgt, wgt_config_string_xml_file); if (fd < 0) { - syslog(LOG_ERR, "can't open config file %s", wgt_config_string_xml_file); + ERROR("can't open config file %s", wgt_config_string_xml_file); return fd; } configxml = xmlReadFd(fd, wgt_config_string_xml_file, NULL, 0); close(fd); if (configxml == NULL) { - syslog(LOG_ERR, "xml parse of config file %s failed", wgt_config_string_xml_file); + ERROR("xml parse of config file %s failed", wgt_config_string_xml_file); return -1; } assert(xmlDocGetRootElement(configxml));