From: Michael Jeanson Date: Tue, 9 Mar 2021 17:14:12 +0000 (-0500) Subject: liblttng-ust-fd doesn't use the internal logging system X-Git-Tag: v2.13.0-rc1~332 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f7f0310af616d6baffebc42ce2374947e90f4256;p=lttng-ust.git liblttng-ust-fd doesn't use the internal logging system liblttng-ust-fd is a standalone library that only uses liblttng-ust public symbols and doesn't currently use the internal logging system. We don't need to link against the private convenience library and initialize the logging system, clean this up. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: Ifd111722e4034de70f68adc3c84b466e3d490370 --- diff --git a/liblttng-ust-fd/Makefile.am b/liblttng-ust-fd/Makefile.am index b9242d8f..99e27bd9 100644 --- a/liblttng-ust-fd/Makefile.am +++ b/liblttng-ust-fd/Makefile.am @@ -8,9 +8,6 @@ liblttng_ust_fd_la_SOURCES = \ liblttng_ust_fd_la_LIBADD = \ $(top_builddir)/liblttng-ust/liblttng-ust.la \ - $(top_builddir)/snprintf/libustsnprintf.la \ $(DL_LIBS) -liblttng_ust_fd_la_CFLAGS = -DUST_COMPONENT=liblttng-ust-fd $(AM_CFLAGS) - liblttng_ust_fd_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION) diff --git a/liblttng-ust-fd/lttng-ust-fd.c b/liblttng-ust-fd/lttng-ust-fd.c index 607df41e..14a23d9f 100644 --- a/liblttng-ust-fd/lttng-ust-fd.c +++ b/liblttng-ust-fd/lttng-ust-fd.c @@ -13,17 +13,10 @@ #include #include -#include "usterr-signal-safe.h" static int (*__lttng_ust_fd_plibc_close)(int fd); static int (*__lttng_ust_fd_plibc_fclose)(FILE *stream); -static __attribute__((constructor)) -void _lttng_ust_fd_init(void) -{ - ust_err_init(); -} - static int _lttng_ust_fd_libc_close(int fd) {