diff --git a/clock.c b/clock.c index cf087e8..1999098 100644 --- a/clock.c +++ b/clock.c @@ -1709,8 +1709,13 @@ static void handle_state_decision_event(struct clock *c) best_id = c->dds.clockIdentity; } - pr_notice("selected best master clock %s", - cid2str(&best_id)); + if (cid_eq(&best_id, &c->dds.clockIdentity)) { + pr_notice("selected local clock %s as best master", + cid2str(&best_id)); + } else { + pr_notice("selected best master clock %s", + cid2str(&best_id)); + } if (!cid_eq(&best_id, &c->best_id)) { clock_freq_est_reset(c);