From a6957b9ac1e95063c71654cd7c352bc9b634754e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 16 Jun 2007 14:30:18 +0000 Subject: Propagate local server address to services --- daemon/echo.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'daemon') diff --git a/daemon/echo.c b/daemon/echo.c index 1fe23727..d6a852e1 100644 --- a/daemon/echo.c +++ b/daemon/echo.c @@ -373,6 +373,7 @@ int main(int argc, char *argv[]) DBusConnection *system_bus; GIOChannel *server_io; struct sigaction sa; + char *addr; start_logging("echo", "Bluetooth echo service ver %s", VERSION); @@ -388,6 +389,12 @@ int main(int argc, char *argv[]) sigaction(SIGCHLD, &sa, NULL); sigaction(SIGPIPE, &sa, NULL); + enable_debug(); + + addr = getenv("BLUETOOTHD_ADDRESS"); + + debug("Bluetooth daemon at %s", addr); + main_loop = g_main_loop_new(NULL, FALSE); system_bus = init_dbus(NULL, NULL, NULL); -- cgit