[libss7-commits] mattf: branch mattf/bug13495 r233 - /team/mattf/bug13495/mtp2.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Sat Dec 6 11:07:15 CST 2008


Author: mattf
Date: Sat Dec  6 11:07:14 2008
New Revision: 233

URL: http://svn.digium.com/view/libss7?view=rev&rev=233
Log:
Ooops, make sure we print out the adjpc on all message types, not just FISUs

Modified:
    team/mattf/bug13495/mtp2.c

Modified: team/mattf/bug13495/mtp2.c
URL: http://svn.digium.com/view/libss7/team/mattf/bug13495/mtp2.c?view=diff&rev=233&r1=232&r2=233
==============================================================================
--- team/mattf/bug13495/mtp2.c (original)
+++ team/mattf/bug13495/mtp2.c Sat Dec  6 11:07:14 2008
@@ -835,6 +835,8 @@
 	if (!(link->master->debug & SS7_DEBUG_MTP2))
 		return;
 
+	ss7_pc_to_str(link->master->switchtype, link->adj_sp->adjpc, pc_str);
+
 	switch (h->li) {
 		case 0:
 			mtype = 0;
@@ -860,8 +862,6 @@
 			ss7_dump_msg(link->master, buf, len);
 			ss7_message(link->master, "FSN: %d FIB %d\n", h->fsn, h->fib);
 			ss7_message(link->master, "BSN: %d BIB %d\n", h->bsn, h->bib);
-
-			ss7_pc_to_str(link->master->switchtype, link->adj_sp->adjpc, pc_str);
 
 			ss7_message(link->master, "%c[%s:%d] FISU\n", prefix, pc_str, link->slc);
 			break; 
@@ -895,13 +895,13 @@
 			ss7_dump_msg(link->master, buf, len);
 			ss7_message(link->master, "FSN: %d FIB %d\n", h->fsn, h->fib);
 			ss7_message(link->master, "BSN: %d BIB %d\n", h->bsn, h->bib);
-			ss7_message(link->master, "%c[%d] LSSU %s\n", prefix, link->slc, mtypech);
+			ss7_message(link->master, "%c[%s:%d] LSSU %s\n", prefix, pc_str, link->slc, mtypech);
 			break;
 		case 2:
 			ss7_dump_msg(link->master, buf, len);
 			ss7_message(link->master, "FSN: %d FIB %d\n", h->fsn, h->fib);
 			ss7_message(link->master, "BSN: %d BIB %d\n", h->bsn, h->bib);
-			ss7_message(link->master, "%c[%d] MSU\n", prefix, link->slc);
+			ss7_message(link->master, "%c[%s:%d] MSU\n", prefix, pc_str, link->slc);
 			ss7_dump_buf(link->master, 0, buf, 3);
 			mtp3_dump(link->master, link, h->data, len - MTP2_SU_HEAD_SIZE);
 			break;




More information about the libss7-commits mailing list