summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-service.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-14 23:27:42 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-14 23:27:42 +0000
commit69367c0266b6f89ea085ac81eda51fc4e18e50c8 (patch)
treea897ed69b35370ecc26804ed5fdbfb8b23429378 /hcid/dbus-service.c
parentcaaafda2c06ac2f0183b29f8999d814587508e39 (diff)
Minor cleanup and a fix
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r--hcid/dbus-service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 40ab706a..a6658dd7 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -700,14 +700,14 @@ int init_services(const char *path)
d = opendir(path);
if (!d) {
- error("Unable to open service dir %s: %s", strerror(errno));
+ error("Unable to open service dir %s: %s", path, strerror(errno));
return -1;
}
while ((e = readdir(d)) != NULL) {
char full_path[PATH_MAX];
struct service *service;
- size_t len= strlen(e->d_name);
+ size_t len = strlen(e->d_name);
if (len < (strlen(SERVICE_SUFFIX) + 1))
continue;