summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-08-26 03:56:56 +0200
committerGravatar Nikias Bassen2009-08-26 03:56:56 +0200
commit3c173016e870f45814b508fe11aafc581b6107c6 (patch)
tree882d4627b1e53c2d1739973eabc717f1d986c8a5 /daemon
parent351f455dab10cac32e15ca157f9b17876becf5ee (diff)
downloadusbmuxd-3c173016e870f45814b508fe11aafc581b6107c6.tar.gz
usbmuxd-3c173016e870f45814b508fe11aafc581b6107c6.tar.bz2
Add version information.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/CMakeLists.txt2
-rw-r--r--daemon/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt
index 45565d1..e5f9b11 100644
--- a/daemon/CMakeLists.txt
+++ b/daemon/CMakeLists.txt
@@ -25,7 +25,7 @@ Please apply the patch in the contrib/ directory to your libusb 1.0 tree.
add_definitions(-DEXPLICIT_ZLP_TRANSACTION)
endif(NOT HAVE_LIBUSB_ZLP)
-add_definitions(-Wall -O2 -g -DUSBMUXD_DAEMON)
+add_definitions(-Wall -O2 -g -DUSBMUXD_DAEMON -DUSBMUXD_VERSION="${USBMUXD_VERSION}")
add_executable(usbmuxd main.c usb-linux.c log.c ../common/utils.c device.c client.c)
target_link_libraries(usbmuxd ${LIBS})
diff --git a/daemon/main.c b/daemon/main.c
index dde99c2..ef98e75 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -389,7 +389,7 @@ int main(int argc, char *argv[])
/* set log level to specified verbosity */
log_level = verbose;
- usbmuxd_log(LL_NOTICE, "usbmux v0.1 starting up");
+ usbmuxd_log(LL_NOTICE, "usbmux v%s starting up", USBMUXD_VERSION);
should_exit = 0;
set_signal_handlers();