Explorar el Código

log the built-in features at startup

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2411 fd59a12c-fef9-0310-b244-a6a79926bd2f
Angus Salkeld hace 16 años
padre
commit
350cc0ae42
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
  1. 2 0
      configure.ac
  2. 1 0
      exec/main.c

+ 2 - 0
configure.ac

@@ -420,6 +420,8 @@ COROSYSCONFDIR=${sysconfdir}/corosync
 AC_SUBST([COROSYSCONFDIR])
 AC_DEFINE_UNQUOTED([COROSYSCONFDIR], "$(eval echo ${COROSYSCONFDIR})", [corosync config directory])
 
+AC_DEFINE_UNQUOTED([PACKAGE_FEATURES], "${PACKAGE_FEATURES}", [corosync built-in features])
+
 AC_OUTPUT
 
 AC_MSG_RESULT([])

+ 1 - 0
exec/main.c

@@ -813,6 +813,7 @@ int main (int argc, char **argv)
 	corosync_mlockall ();
 
 	log_printf (LOGSYS_LEVEL_NOTICE, "Corosync Cluster Engine ('%s'): started and ready to provide service.\n", VERSION);
+	log_printf (LOGSYS_LEVEL_INFO, "Corosync built-in features:" PACKAGE_FEATURES "\n");
 
 	(void)signal (SIGINT, sigintr_handler);
 	(void)signal (SIGUSR2, sigusr2_handler);