summaryrefslogtreecommitdiffstats
path: root/app/ptp.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/ptp.c')
-rw-r--r--app/ptp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/ptp.c b/app/ptp.c
index 026e6ec..6113d45 100644
--- a/app/ptp.c
+++ b/app/ptp.c
@@ -155,6 +155,8 @@ static uint64_t pll (int64_t obs_phase)
}
+char ptp_info[128];
+
void ptp_dispatch (uint64_t edge, const char *src)
@@ -167,6 +169,11 @@ void ptp_dispatch (uint64_t edge, const char *src)
last_edge = edge;
obs_phase = edge_to_phase (edge);
+ snprintf (ptp_info, sizeof (ptp_info) - 1, "PTP PLL: obs_f=%9d delta_phi=%5d f=%9d %s\n",
+ (int) obs_freq,
+ (int) obs_phase,
+ (int) ptp_freq, src);
+
#ifdef CHATTY_PLLS
printf ("PTP PLL: obs_f=%9d delta_phi=%5d f=%9d %s\r\n",
(int) obs_freq,