From d9e67b829bd7ca09aa0e142e2fc50753486e959f Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Mon, 2 May 2016 12:53:25 +0100 Subject: [PATCH] bluez/log.c: Replace 'VERSION' by 'BLUEZ_VERSION_MAJOR.BLUEZ_VERSION_MINOR' --- CMakeLists.txt | 2 -- bluez/src/log.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f479b1..ae94fd2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,8 +42,6 @@ set(gattlib_SRCS bluez/attrib/att.c bluez/lib/uuid.c bluez/src/log.c) -add_definitions(-DVERSION="4.101") - # Gattlib files list(APPEND gattlib_SRCS src/gattlib_connect.c src/gattlib_discover.c diff --git a/bluez/src/log.c b/bluez/src/log.c index 75a98a9..0477b93 100644 --- a/bluez/src/log.c +++ b/bluez/src/log.c @@ -133,7 +133,7 @@ void __btd_log_init(const char *debug, int detach) openlog("bluetoothd", option, LOG_DAEMON); - syslog(LOG_INFO, "Bluetooth daemon %s", VERSION); + syslog(LOG_INFO, "Bluetooth daemon %d.%d", BLUEZ_VERSION_MAJOR, BLUEZ_VERSION_MINOR); } void __btd_log_cleanup(void)