Make sure we give the linkset number, not the offset in the linksets array
authorMatthew Fredrickson <creslin@digium.com>
Mon, 30 Oct 2006 18:04:28 +0000 (18:04 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Mon, 30 Oct 2006 18:04:28 +0000 (18:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46466 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 23d715f..f299177 100644 (file)
@@ -8759,7 +8759,7 @@ static void zt_ss7_message(struct ss7 *ss7, char *s)
                if (linksets[i].ss7 == ss7)
                        break;
 
-       ast_verbose("[%d] %s", i, s);
+       ast_verbose("[%d] %s", i+1, s);
 }
 
 static void zt_ss7_error(struct ss7 *ss7, char *s)
@@ -8770,7 +8770,7 @@ static void zt_ss7_error(struct ss7 *ss7, char *s)
                if (linksets[i].ss7 == ss7)
                        break;
 
-       ast_log(LOG_ERROR, "[%d] %s", i, s);
+       ast_log(LOG_ERROR, "[%d] %s", i+1, s);
 }
 #endif /* HAVE_SS7 */