diff options
Diffstat (limited to 'app/ref.c')
-rw-r--r-- | app/ref.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -351,6 +351,7 @@ static uint64_t pll (int64_t obs_phase) return pd; } +char ref_info[128]; void ref_dispatch (uint64_t edge, const char *src) @@ -374,6 +375,10 @@ void ref_dispatch (uint64_t edge, const char *src) // delta_f = obs_freq - ref_freq; + snprintf (ref_info, sizeof (ref_info) - 1, "REF PLL: obs_f=%9d delta_phi=%5d f=%9d %s\n", + (int) obs_freq, + (int) obs_phase, + (int) ref_freq, src); #ifdef CHATTY_PLLS printf ("REF PLL: obs_f=%9d delta_phi=%5d f=%9d %s\r\n", |