From 4b3ef54c204d6ecaf7f34d748e26d0f8115b1d31 Mon Sep 17 00:00:00 2001 From: Michael Spiceland Date: Thu, 17 Feb 2011 15:25:17 -0600 Subject: [PATCH] dahdi: fix "ClockSource" in proc with multiple cards when not using timingcable The /proc output for dahdi appends a "ClockSource" designator to show which span is the currently selected timing source. When using multiple cards without a timing cable, each of the cards has its own independent clock source. There is an issue for this case where only the ClockSource for the first card is shown. This change resolves the issue and it is now show for each card in the system. (closes #18832) --- drivers/dahdi/dahdi-base.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 01bee57..78b5d36 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -838,7 +838,7 @@ static int dahdi_proc_read(char *page, char **start, off_t off, int count, int * /* list alarms */ len += fill_alarm_string(page + len, count - len, s->alarms); if (s->syncsrc && - (s->syncsrc == s->spanno)) + (s->syncsrc == (s->offset +1))) len += snprintf(page + len, count - len, "ClockSource "); len += snprintf(page + len, count - len, "\n"); if (s->count.bpv) -- 1.7.2.3