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

renamed log_reset() to log_init()

This commit is contained in:
Steffen Vogel 2015-10-11 13:25:06 +02:00
parent 01cf61e467
commit 7135dcfa69
6 changed files with 6 additions and 6 deletions

View file

@ -45,7 +45,7 @@ void log_outdent(int *);
void log_setlevel(int lvl);
/** Reset the wallclock of debug messages. */
void log_reset();
void log_init();
/** Logs variadic messages to stdout.
*

View file

@ -54,7 +54,7 @@ void log_setlevel(int lvl)
debug(10, "Switched to debug level %u", level);
}
void log_reset()
void log_init()
{
clock_gettime(CLOCK_REALTIME, &epoch);
debug(10, "Debug clock resetted");

View file

@ -90,7 +90,7 @@ int main(int argc, char *argv[])
list_init(&nodes, (dtor_cb_t) node_destroy);
log_reset();
log_init();
config_init(&config);
config_parse(argv[optind], &config, &set, &nodes, NULL);

View file

@ -90,7 +90,7 @@ int main(int argc, char *argv[])
list_init(&nodes, (dtor_cb_t) node_destroy);
log_reset();
log_init();
config_init(&config);
config_parse(argv[optind], &config, &set, &nodes, NULL);

View file

@ -145,7 +145,7 @@ int main(int argc, char *argv[])
char *configfile = (argc == 2) ? argv[1] : "opal-shmem.conf";
log_reset();
log_init();
info("This is Simulator2Simulator Server (S2SS)");
info (" Version: %s (built on %s, %s)", BLD(YEL(VERSION)),
BLD(MAG(__DATE__)), BLD(MAG(__TIME__)));

View file

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
sigaction(SIGTERM, &sa_quit, NULL);
sigaction(SIGINT, &sa_quit, NULL);
log_reset();
log_init();
config_init(&config);
config_parse(argv[1], &config, &settings, &nodes, NULL);