put the iotivity version info in CA
authorJaewook Jung <jw0213.jung@samsung.com>
Tue, 23 Feb 2016 03:12:02 +0000 (12:12 +0900)
committerJon A. Cruz <jonc@osg.samsung.com>
Wed, 24 Feb 2016 00:35:46 +0000 (00:35 +0000)
put the iotivity version info in CA for convenience in debugging
because CA is the lowest module which is always included when iotivity is built.

Change-Id: I54451358f16540aba914ebdd67fdbf7ee762f931
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5125
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/connectivity/src/caconnectivitymanager.c
resource/csdk/logger/include/logger.h

index 40aa29c..2fa717a 100644 (file)
@@ -61,6 +61,7 @@ extern void CADTLSSetCrlCallback(CAGetDTLSCrlHandler crlCallback);
 
 CAResult_t CAInitialize()
 {
+    OIC_LOG_V(DEBUG, TAG, "IoTivity version is v%s", IOTIVITY_VERSION);
     OIC_LOG(DEBUG, TAG, "CAInitialize");
 
     if (!g_isInitialized)
index b48cd28..fcab193 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef LOGGER_H_
 #define LOGGER_H_
 
+#define IOTIVITY_VERSION "1.1.0"
+
 #include <stdint.h>
 #include <stdio.h>
 #include <stdarg.h>