[libss7-commits] mattf: trunk r120 - /trunk/isup.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Thu Oct 11 18:24:02 CDT 2007


Author: mattf
Date: Thu Oct 11 18:24:02 2007
New Revision: 120

URL: http://svn.digium.com/view/libss7?view=rev&rev=120
Log:
Take out some duplicate code, add some additional info for unkown parameters

Modified:
    trunk/isup.c

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?view=diff&rev=120&r1=119&r2=120
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Thu Oct 11 18:24:02 2007
@@ -1427,7 +1427,7 @@
 	}
 
 	/* This is if we don't find it....  */
-	ss7_message(ss7, "\t\tParm: Unknown");
+	ss7_message(ss7, "\t\tParm: Unknown (%d)", optparm->type);
 	optparm = (struct isup_parm_opt *)parmbuf;
 	ss7_dump_buf(ss7, 3, optparm->data, optparm->len);
 	return optparm->len + 2;
@@ -1677,8 +1677,10 @@
 			res = dump_parm(ss7, mh->type, optparm->type, (void *)(mh->data + offset), optparm->len, PARM_TYPE_OPTIONAL);
 
 			if (res < 0) {
+#if 0
 				ss7_message(ss7, "Unhandled optional parameter 0x%x '%s'\n", optparm->type, param2str(optparm->type));
 				isup_dump_buffer(ss7, optparm->data, optparm->len);
+#endif
 				res = optparm->len + 2;
 			}
 




More information about the libss7-commits mailing list