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)