From 503f2f8123c560cab69786935d8ba42e77f8f2c0 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 27 Feb 2024 04:39:01 +0000 Subject: slbt_lconf_open(): unless in debug mode, silence oepnat()/fstat() trace msgs. --- src/internal/slibtool_lconf_impl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/internal') diff --git a/src/internal/slibtool_lconf_impl.c b/src/internal/slibtool_lconf_impl.c index b96e4f9..b41d8e9 100644 --- a/src/internal/slibtool_lconf_impl.c +++ b/src/internal/slibtool_lconf_impl.c @@ -575,6 +575,11 @@ static int slbt_lconf_open( trace_result = slbt_lconf_trace_result_plain; } + if (!(dctx->cctx->drvflags & SLBT_DRIVER_DEBUG)) { + trace_fstat = slbt_lconf_trace_fstat_silent; + trace_openat = slbt_lconf_trace_openat_silent; + } + if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) { trace_lconf(dctx,lconf); slbt_output_fdcwd(dctx); -- cgit v1.2.3