[PATCH phosphor-host-ipmid 1/4] Print the dlopen failure for debugging
Patrick Williams
patrick at stwcx.xyz
Fri Oct 16 09:02:20 AEDT 2015
On Thu, Oct 15, 2015 at 10:43:20AM -0500, OpenBMC Patches wrote:
> From: Chris Austen <austenc at us.ibm.com>
>
> ---
> ipmid.C | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ipmid.C b/ipmid.C
> index d0dfba8..87f993e 100644
> --- a/ipmid.C
> +++ b/ipmid.C
> @@ -351,7 +351,7 @@ void ipmi_register_callback_handlers(const char* ipmi_lib_path)
> if(lib_handler == NULL)
> {
> fprintf(stderr,"ERROR opening:[%s]\n",handler_fqdn.c_str());
> - dlerror();
> + fprintf(stderr, "%s\n", dlerror());
Shouldn't the dlerror() go into the previous fprintf?
fprintf(stderr,"ERROR opening %s: %s\n",handler_fqdn.c_str(),dlerror());
> }
> // Wipe the memory allocated for this particular entry.
> free(handler_list[num_handlers]);
> --
> 2.6.0
>
>
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc
--
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20151015/a180a675/attachment.sig>
More information about the openbmc
mailing list