From: <al...@us...> - 2003-04-15 17:16:46
|
Update of /cvsroot/msyslog/syslog/src In directory sc8-pr-cvs1:/tmp/cvs-serv29790 Modified Files: modules.c Log Message: report dynamic lib errors, by jkohen@ Index: modules.c =================================================================== RCS file: /cvsroot/msyslog/syslog/src/modules.c,v retrieving revision 1.170 retrieving revision 1.171 diff -u -d -r1.170 -r1.171 --- modules.c 17 Sep 2002 05:20:26 -0000 1.170 +++ modules.c 15 Apr 2003 17:16:40 -0000 1.171 @@ -153,8 +153,11 @@ m_dprintf(MSYSLOG_INFORMATIVE, "get_symbol: " "Trying to open %s... ", extlib); *h = dlopen(extlib, DLOPEN_FLAGS); - m_dprintf(MSYSLOG_INFORMATIVE, "%s\n", - (*h == NULL) ? "failed" : "ok"); + if (*h == NULL) + m_dprintf(MSYSLOG_INFORMATIVE, + "failed [%s]\n", dlerror()); + else + m_dprintf(MSYSLOG_INFORMATIVE, "ok"); } } } |