summaryrefslogtreecommitdiffstats
path: root/src/basic
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2024-04-03 13:07:43 +0200
committerLuca Boccassi <bluca@debian.org>2024-04-03 15:23:04 +0200
commitdd6c0df65cd9c0c19cbd655772824c90125347b4 (patch)
tree1bb8cf91699c57d703ed6d84d34606e72d6de762 /src/basic
parentbpf: actually check for errors when loading symbols (diff)
downloadsystemd-dd6c0df65cd9c0c19cbd655772824c90125347b4.tar.xz
systemd-dd6c0df65cd9c0c19cbd655772824c90125347b4.zip
dlopen: log debug message when a library is dlopened
Useful to track what is being used and when
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/dlfcn-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/dlfcn-util.c b/src/basic/dlfcn-util.c
index a321df3c67..8022f55294 100644
--- a/src/basic/dlfcn-util.c
+++ b/src/basic/dlfcn-util.c
@@ -49,6 +49,8 @@ int dlopen_many_sym_or_warn_sentinel(void **dlp, const char *filename, int log_l
return log_debug_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
"%s is not installed: %s", filename, dlerror());
+ log_debug("Loaded '%s' via dlopen()", filename);
+
va_list ap;
va_start(ap, log_level);
r = dlsym_many_or_warnv(dl, log_level, ap);