summaryrefslogtreecommitdiff
path: root/obexd/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-12-21 17:55:39 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-12-21 17:55:39 +0100
commit0c388f5a777bcea9ce267114d4c6bde461bc23be (patch)
treeeae8e2bbfa8a7fdf871ee21d0d7bac9e5792564c /obexd/src
parent365a597557e3d368b69f84aaeb4b020f299fea20 (diff)
obexd: There is only one daemon
Diffstat (limited to 'obexd/src')
-rw-r--r--obexd/src/log.c6
-rw-r--r--obexd/src/log.h2
-rw-r--r--obexd/src/main.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/obexd/src/log.c b/obexd/src/log.c
index 59b615158..a96b07b05 100644
--- a/obexd/src/log.c
+++ b/obexd/src/log.c
@@ -98,7 +98,7 @@ void __obex_log_enable_debug(void)
desc->flags |= OBEX_DEBUG_FLAG_PRINT;
}
-void __obex_log_init(const char *label, const char *debug, int detach)
+void __obex_log_init(const char *debug, int detach)
{
int option = LOG_NDELAY | LOG_PID;
struct obex_debug_desc *desc;
@@ -123,9 +123,9 @@ void __obex_log_init(const char *label, const char *debug, int detach)
if (!detach)
option |= LOG_PERROR;
- openlog(label, option, LOG_DAEMON);
+ openlog("obexd", option, LOG_DAEMON);
- syslog(LOG_INFO, "%s daemon %s", label, VERSION);
+ syslog(LOG_INFO, "OBEX daemon %s", VERSION);
}
void __obex_log_cleanup(void)
diff --git a/obexd/src/log.h b/obexd/src/log.h
index e32256582..1bf1b058b 100644
--- a/obexd/src/log.h
+++ b/obexd/src/log.h
@@ -26,7 +26,7 @@ void error(const char *format, ...) __attribute__((format(printf, 1, 2)));
void obex_debug(const char *format, ...) __attribute__((format(printf, 1, 2)));
-void __obex_log_init(const char *label, const char *debug, int detach);
+void __obex_log_init(const char *debug, int detach);
void __obex_log_cleanup(void);
void __obex_log_enable_debug(void);
diff --git a/obexd/src/main.c b/obexd/src/main.c
index 9e3812621..079520d84 100644
--- a/obexd/src/main.c
+++ b/obexd/src/main.c
@@ -270,7 +270,7 @@ int main(int argc, char *argv[])
g_option_context_free(context);
- __obex_log_init("obexd", option_debug, option_detach);
+ __obex_log_init(option_debug, option_detach);
DBG("Entering main loop");