#include <string.h>
#include <errno.h>
#include <assert.h>
-#include <syslog.h>
+
#include <libxml/tree.h>
#include "verbose.h"
node = wgt_config_widget();
if (!node) {
- warning("no widget");
+ WARNING("no widget");
errno = EINVAL;
return -1;
}
node = wgt_config_content();
desc->content_src = optprop(node, wgt_config_string_src);
if (node && desc->content_src == NULL) {
- warning("content without src");
+ WARNING("content without src");
errno = EINVAL;
return -1;
}
*icontail = icon;
if (icon->src == NULL) {
- warning("icon without src");
+ WARNING("icon without src");
errno = EINVAL;
return -1;
}
*featuretail = feature;
if (feature->name == NULL) {
- warning("feature without name");
+ WARNING("feature without name");
errno = EINVAL;
return -1;
}
*paramtail = param;
if (param->name == NULL || param->value == NULL) {
- warning("param without name or value");
+ WARNING("param without name or value");
errno = EINVAL;
return -1;
}
preference->next = NULL;
if (preference->name == NULL) {
- warning("preference without name");
+ WARNING("preference without name");
errno = EINVAL;
return -1;
}
assert(ifo);
f = fdopen(fd, "w");
if (f == NULL)
- warning("can't fdopen in wgt_info_dump");
+ WARNING("can't fdopen in wgt_info_dump");
else {
dump_desc(&ifo->desc, f, prefix);
fclose(f);