aboutsummaryrefslogtreecommitdiffstats
path: root/src/wgtpkg-installer.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-13 22:21:49 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-13 22:21:49 +0100
commite2de563d1ecb4585ce68521bd42f3ef45ac79f16 (patch)
tree94d57add5536e30b7296d6ab36d92d363441170b /src/wgtpkg-installer.c
parent12a227a2fc574cf0fd560453e1cdd15c50550abb (diff)
work in progress
Change-Id: I197678515772982ab6dd2fd949fa2a54ca4f268f
Diffstat (limited to 'src/wgtpkg-installer.c')
-rw-r--r--src/wgtpkg-installer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wgtpkg-installer.c b/src/wgtpkg-installer.c
index e8568b8..62807aa 100644
--- a/src/wgtpkg-installer.c
+++ b/src/wgtpkg-installer.c
@@ -90,17 +90,17 @@ int main(int ac, char **av)
grant_permission_list(optarg);
break;
case ':':
- syslog(LOG_ERR, "missing argument value");
+ ERROR("missing argument value");
return 1;
default:
- syslog(LOG_ERR, "unrecognized option");
+ ERROR("unrecognized option");
return 1;
}
}
ac -= optind;
if (ac < 2) {
- syslog(LOG_ERR, "arguments are missing");
+ ERROR("arguments are missing");
return 1;
}
@@ -109,7 +109,7 @@ int main(int ac, char **av)
for (i = 0 ; av[i] != NULL ; i++) {
wpath = realpath(av[i], NULL);
if (wpath == NULL) {
- syslog(LOG_ERR, "error while getting realpath of %dth widget: %s", i+1, av[i]);
+ ERROR("error while getting realpath of %dth widget: %s", i+1, av[i]);
return 1;
}
av[i] = wpath;