From 335100c1a63c7f78ec969a3e64db25a215390f35 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 1 Jan 2012 09:02:29 +0100 Subject: [PATCH] Differentiate the BMC related logging from the synchronization logging. Signed-off-by: Richard Cochran --- clock.c | 2 +- port.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clock.c b/clock.c index a51a4b2..13ce73d 100644 --- a/clock.c +++ b/clock.c @@ -448,7 +448,7 @@ static void handle_state_decision_event(struct clock *c) if (!best) return; - pr_info("selected best master clock %s", + pr_notice("selected best master clock %s", cid2str(&best->dataset.identity)); if (c->best != best) diff --git a/port.c b/port.c index 672cb0d..512d242 100644 --- a/port.c +++ b/port.c @@ -178,7 +178,7 @@ static int add_foreign_master(struct port *p, struct ptp_message *m) break; } if (!fc) { - pr_info("port %hu: new foreign master %s", portnum(p), + pr_notice("port %hu: new foreign master %s", portnum(p), pid2str(&m->header.sourcePortIdentity)); fc = malloc(sizeof(*fc)); @@ -654,7 +654,7 @@ static void process_delay_resp(struct port *p, struct ptp_message *m) if (p->logMinDelayReqInterval != rsp->hdr.logMessageInterval) { // TODO - validate the input. p->logMinDelayReqInterval = rsp->hdr.logMessageInterval; - pr_info("port %hu: minimum delay request interval 2^%d", + pr_notice("port %hu: minimum delay request interval 2^%d", portnum(p), p->logMinDelayReqInterval); tmtab_init(&p->tmtab, 1 + p->logMinDelayReqInterval); } @@ -812,7 +812,7 @@ void port_dispatch(struct port *p, enum fsm_event event) if (next == p->state) return; - pr_info("port %hu: %s to %s on %s", portnum(p), + pr_notice("port %hu: %s to %s on %s", portnum(p), ps_str[p->state], ps_str[next], ev_str[event]); port_clr_tmo(p->fda.fd[FD_ANNOUNCE_TIMER]);