From: Eliel C. Sardanons Date: Tue, 16 Jun 2009 13:25:51 +0000 (+0000) Subject: Show the interface name on error, if it is not found. X-Git-Tag: 1.4.26~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a42ff13c97fc4c975dd1f531ea120f4c20fe90db;p=thirdparty%2Fasterisk.git 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)'. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@200875 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_smdi.c b/res/res_smdi.c index 42aba55641..f26e2ac25f 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -1048,7 +1048,7 @@ static int smdi_load(int reload) 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")) {