[svn-commits] eliel: trunk r200841 - /trunk/res/res_smdi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 16 07:32:04 CDT 2009


Author: eliel
Date: Tue Jun 16 07:32:00 2009
New Revision: 200841

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=200841
Log:
Show the interface name on error, if it is not found.

If the smdiport specified is not found, show the interface name
instead of '(null)'.


Modified:
    trunk/res/res_smdi.c

Modified: trunk/res/res_smdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/res/res_smdi.c?view=diff&rev=200841&r1=200840&r2=200841
==============================================================================
--- trunk/res/res_smdi.c (original)
+++ trunk/res/res_smdi.c Tue Jun 16 07:32:00 2009
@@ -1138,7 +1138,7 @@
 				ASTOBJ_UNREF(iface, ast_smdi_interface_destroy);
 
 			if (!(iface = ASTOBJ_CONTAINER_FIND(&smdi_ifaces, v->value))) {
-				ast_log(LOG_NOTICE, "SMDI interface %s not found\n", iface->name);
+				ast_log(LOG_NOTICE, "SMDI interface %s not found\n", v->value);
 				continue;
 			}
 		} else if (!strcasecmp(v->name, "pollinginterval")) {




More information about the svn-commits mailing list