bmf: show Git SHA in plugin constructor
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 13 Apr 2016 13:27:05 +0000 (15:27 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 13 Apr 2016 15:02:00 +0000 (17:02 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/bmf/src/olsrd_plugin.c

index a533dae..cf4c257 100644 (file)
@@ -46,6 +46,8 @@
 #include "plugin_util.h"
 #include "defs.h" /* olsr_u8_t, olsr_cnf */
 #include "scheduler.h" /* olsr_start_timer() */
+#include "olsr.h"
+#include "builddata.h"
 
 /* BMF includes */
 #include "Bmf.h" /* InitBmf(), CloseBmf() */
@@ -159,7 +161,7 @@ void olsrd_get_plugin_parameters(const struct olsrd_plugin_parameters **params,
 static void my_init(void)
 {
   /* Print plugin info to stdout */
-  printf("%s\n", MOD_DESC);
+  olsr_printf(0, "%s (%s)\n", MOD_DESC, git_descriptor);
 
   return;
 }