Add refclocks log

This commit is contained in:
Miroslav Lichvar
2009-11-30 16:33:06 +01:00
parent e9ae3d0a0b
commit 7c53aca486
6 changed files with 133 additions and 0 deletions

11
conf.c
View File

@@ -118,6 +118,7 @@ static int do_log_measurements = 0;
static int do_log_statistics = 0;
static int do_log_tracking = 0;
static int do_log_rtc = 0;
static int do_log_refclocks = 0;
static int do_dump_on_exit = 0;
static char *logdir = ".";
static char *dumpdir = ".";
@@ -648,6 +649,9 @@ parse_log(const char *line)
} else if (!strncmp(line, "rtc", 3)) {
do_log_rtc = 1;
line += 3;
} else if (!strncmp(line, "refclocks", 9)) {
do_log_refclocks = 1;
line += 9;
} else {
break;
}
@@ -1218,6 +1222,13 @@ CNF_GetLogRtc(void)
return do_log_rtc;
}
/* ================================================== */
int
CNF_GetLogRefclocks(void)
{
return do_log_refclocks;
}
/* ================================================== */
char *