dot_draw: show Git SHA in plugin constructor
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 13 Apr 2016 13:45:07 +0000 (15:45 +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/dot_draw/src/olsrd_plugin.c

index b24ae57..1090474 100644 (file)
@@ -52,9 +52,9 @@
 #include "olsr.h"
 #include "olsrd_plugin.h"
 #include "olsrd_dot_draw.h"
+#include "builddata.h"
 
-#define PLUGIN_NAME    "OLSRD dot draw plugin"
-#define MOD_DESC PLUGIN_NAME
+#define PLUGIN_NAME              "OLSRD dot_draw plugin"
 #define PLUGIN_INTERFACE_VERSION 5
 
 union olsr_ip_addr ipc_accept_ip;
@@ -71,7 +71,7 @@ static void
 my_init(void)
 {
   /* Print plugin info to stdout */
-  printf("%s\n", MOD_DESC);
+  olsr_printf(0, "%s (%s)\n", PLUGIN_NAME, git_descriptor);
 
   /* defaults for parameters */
   ipc_port = 2004;