From fa97d70e79f52fd3b91c15e493aad1194d23254c Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 4 Jul 2014 09:44:11 +0000 Subject: [PATCH] added debug level to start messages git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@127 8ec27952-4edc-4aab-86aa-e87bb2611832 --- server/src/server.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/src/server.c b/server/src/server.c index 138c24668..cc992a9c0 100644 --- a/server/src/server.c +++ b/server/src/server.c @@ -113,7 +113,7 @@ static void quit() { stop(); - // TODO: free nodes and paths + /** @todo Free nodes and paths */ config_destroy(&config); @@ -137,13 +137,14 @@ int main(int argc, char *argv[]) if (argc != 2) { printf("Usage: %s CONFIG\n", argv[0]); printf(" CONFIG is a required path to a configuration file\n\n"); - printf("Simulator2Simulator Server %s (%s %s)\n", VERSION, __DATE__, __TIME__); + printf("Simulator2Simulator Server %s (built on %s, %s)\n", BLU(VERSION), MAG(__DATE__), MAG(__TIME__)); printf(" Copyright 2014, Institute for Automation of Complex Power Systems, EONERC\n"); printf(" Steffen Vogel \n"); exit(EXIT_FAILURE); } - info("This is " BLU("s2ss %s"), VERSION); + info("This is %s %s", BLU("s2ss"), BLU(VERSION)); + debug(1, "Running with debug level: %u", V); /* Parse configuration file */ config_init(&config);