diff libfdcore/core.c @ 1159:05f74dc19c49

Include source rev number in version information when available
author Sebastien Decugis <sdecugis@freediameter.net>
date Fri, 31 May 2013 11:20:27 +0800
parents 7ef8ab1d664f
children eaa92af9e46d
line wrap: on
line diff
--- a/libfdcore/core.c	Fri May 31 11:19:35 2013 +0800
+++ b/libfdcore/core.c	Fri May 31 11:20:27 2013 +0800
@@ -165,12 +165,6 @@
 /*********************************/
 /* Public interfaces */
 
-/* Return a string describing the version of the library */
-const char *fd_core_version(void)
-{
-	return _stringize(FD_PROJECT_VERSION_MAJOR) "." _stringize(FD_PROJECT_VERSION_MINOR) "." _stringize(FD_PROJECT_VERSION_REV);
-}
-
 /* Initialize the libfdcore internals. This also initializes libfdproto */
 int fd_core_initialize(void)
 {
@@ -188,11 +182,11 @@
 		return ret;
 	}
 	
-	LOG_N("libfdproto initialized.");
-	
 	/* Name this thread */
 	fd_log_threadname("Main");
 	
+	LOG_N("libfdproto '%s' initialized.", fd_libproto_version);
+	
 	/* Initialize gcrypt and gnutls */
 	#ifndef GNUTLS_VERSION_210
 	GNUTLS_TRACE( (void) gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread) );
@@ -226,6 +220,9 @@
 	
 	core_state_set(CORE_LIBS_INIT);
 	
+	LOG_N("libfdcore '%s' initialized.", fd_core_version);
+	
+	
 	/* Next thing is to parse the config, leave this for a different function */
 	return 0;
 }
"Welcome to our mercurial repository"