diff options
author | root <root@ka-ata-killa.ourano.james.local> | 2021-03-20 12:08:14 +0000 |
---|---|---|
committer | root <root@ka-ata-killa.ourano.james.local> | 2021-03-20 12:08:14 +0000 |
commit | 4342064ee35d4facf1ad4cbde8f6f84460df02a0 (patch) | |
tree | 3eddea7ff8f15885c2f6e90f1a6cf434c8d68854 /app/ptp.c | |
parent | 985c5269d14c5a8a17cd457c4fc643306011c2a7 (diff) | |
download | clock-4342064ee35d4facf1ad4cbde8f6f84460df02a0.tar.gz clock-4342064ee35d4facf1ad4cbde8f6f84460df02a0.tar.bz2 clock-4342064ee35d4facf1ad4cbde8f6f84460df02a0.zip |
add webserver content
Diffstat (limited to 'app/ptp.c')
-rw-r--r-- | app/ptp.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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, |