From c21172c832a53f815681349085e4511623652b7d Mon Sep 17 00:00:00 2001 From: Damon To Date: Sat, 11 Nov 2023 13:44:39 +0800 Subject: [PATCH] print dlerror --- src/dlsym_interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlsym_interface.c b/src/dlsym_interface.c index 26fd9ea..926d65c 100644 --- a/src/dlsym_interface.c +++ b/src/dlsym_interface.c @@ -40,13 +40,13 @@ int dlsym_interface_init() if (!(apdu_interface_dlhandle = dlopen(libapduinterface_path, RTLD_LAZY))) { - fprintf(stderr, "APDU interface env missing, current: APDU_INTERFACE=%s\n", libapduinterface_path); + fprintf(stderr, "APDU interface env missing, current: APDU_INTERFACE=%s err:%s\n", libapduinterface_path, dlerror()); return -1; } if (!(http_interface_dlhandle = dlopen(libhttpinterface_path, RTLD_LAZY))) { - fprintf(stderr, "HTTP interface env missing, current: HTTP_INTERFACE=%s\n", libhttpinterface_path); + fprintf(stderr, "HTTP interface env missing, current: HTTP_INTERFACE=%s err:%s\n", libhttpinterface_path, dlerror()); } if (apdu_interface_dlhandle)