Fixed HC_LOAD_FUNC macro
authorGabriele 'matrix' Gristina <gm4tr1x@users.noreply.github.com>
Mon, 1 Feb 2016 12:07:14 +0000 (13:07 +0100)
committerGabriele 'matrix' Gristina <gm4tr1x@users.noreply.github.com>
Mon, 1 Feb 2016 12:07:14 +0000 (13:07 +0100)
include/shared.h

index 48d29d0..27fbea4 100644 (file)
   ptr->name = (type) hc_dlsym (ptr->lib, #name); \
   if (!ptr->name) { \
     if (noerr == 1) { \
-      log_error ("ERROR: #name is missing from #libname shared library."); \
+      log_error ("ERROR: %s is missing from %s shared library.", #name, #libname); \
       exit (-1); \
     } else { \
-      log_info ("WARNING: #name is missing from #libname shared library."); \
+      log_info ("WARNING: %s is missing from %s shared library.", #name, #libname); \
       return (-1); \
     } \
   }