summaryrefslogtreecommitdiffstats
path: root/app/ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/ref.c')
-rw-r--r--app/ref.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/ref.c b/app/ref.c
index 6d335ce..ecd8018 100644
--- a/app/ref.c
+++ b/app/ref.c
@@ -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",