1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Use same copyright message across all tools

This commit is contained in:
Steffen Vogel 2016-01-15 15:25:22 +01:00
parent 305e411814
commit a057e35a41
6 changed files with 16 additions and 16 deletions

View file

@ -66,6 +66,9 @@
struct settings;
struct timespec;
/** Print copyright message to screen. */
void print_copyright();
/** Normal random variate generator using the Box-Muller method
*
* @param m Mean

View file

@ -19,6 +19,14 @@
#include "cfg.h"
#include "utils.h"
void print_copyright()
{
printf("Simulator2Simulator Server %s (built on %s %s)\n",
BLU(VERSION), MAG(__DATE__), MAG(__TIME__));
printf(" copyright 2014-2015, Institute for Automation of Complex Power Systems, EONERC\n");
printf(" Steffen Vogel <StVogel@eonerc.rwth-aachen.de>\n");
}
int version_parse(const char *s, struct version *v)
{
return sscanf(s, "%u.%u", &v->major, &v->minor) != 2;

View file

@ -60,10 +60,7 @@ static void usage(char *name)
printf(" NODE the name of the node to which samples are sent and received from\n");
printf(" -r swap read / write endpoints)\n\n");
printf("Simulator2Simulator Server %s (built on %s %s)\n",
BLU(VERSION), MAG(__DATE__), MAG(__TIME__));
printf(" copyright 2014-2015, Institute for Automation of Complex Power Systems, EONERC\n");
printf(" Steffen Vogel <StVogel@eonerc.rwth-aachen.de>\n");
print_copyright();
exit(EXIT_FAILURE);
}

View file

@ -113,10 +113,8 @@ static void usage(const char *name)
list_foreach(struct node_type *vt, &node_types)
printf(" - %s: %s\n", vt->name, vt->description);
printf("\n");
printf("Simulator2Simulator Server %s (built on %s %s)\n",
BLU(VERSION), MAG(__DATE__), MAG(__TIME__));
printf(" copyright 2014-2015, Institute for Automation of Complex Power Systems, EONERC\n");
printf(" Steffen Vogel <StVogel@eonerc.rwth-aachen.de>\n");
print_copyright();
exit(EXIT_FAILURE);
}

View file

@ -38,10 +38,7 @@ int main(int argc, char *argv[])
printf(" RATE how many messages per second\n");
printf(" LIMIT only send LIMIT messages\n\n");
printf("Simulator2Simulator Server %s (built on %s %s)\n",
BLU(VERSION), MAG(__DATE__), MAG(__TIME__));
printf(" copyright 2014-2015, Institute for Automation of Complex Power Systems, EONERC\n");
printf(" Steffen Vogel <StVogel@eonerc.rwth-aachen.de>\n");
print_copyright();
exit(EXIT_FAILURE);
}

View file

@ -62,10 +62,7 @@ int main(int argc, char *argv[])
printf(" TEST the name of the test to execute: 'rtt'\n");
printf(" NODE name of the node which shoud be used\n\n");
printf("Simulator2Simulator Server %s (built on %s %s)\n",
BLU(VERSION), MAG(__DATE__), MAG(__TIME__));
printf(" copyright 2014-2015, Institute for Automation of Complex Power Systems, EONERC\n");
printf(" Steffen Vogel <StVogel@eonerc.rwth-aachen.de>\n");
print_copyright();
exit(EXIT_FAILURE);
}