From 60cb4abda89ae0f9bdd2cc1f2f628affdcc423f5 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 4 May 2010 15:33:28 +0000 Subject: Report correct span number in dahdi_cfg verbose output. When the DAHDI configuration file does not configure every single span in the system, but leaves spans unconfigured, the verbose output from dahdi_cfg would show incorrect span numbers when reporting the line configuration, as it printed the index into the array of configured spans, instead of their actual span numbers. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8606 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- dahdi_cfg.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/dahdi_cfg.c b/dahdi_cfg.c index 6c6ffad..25ea6a5 100644 --- a/dahdi_cfg.c +++ b/dahdi_cfg.c @@ -1280,15 +1280,17 @@ static void printconfig(int fd) "Echo Canceller(s): %s\n" "Configuration\n" "======================\n\n", vi.version, vi.echo_canceller); - for (x=0;x