diff mbox series

elf:change print info level

Message ID 20240721120900.6271-1-shixuantong1001@163.com
State New
Headers show
Series elf:change print info level | expand

Commit Message

shixuantong July 21, 2024, 12:09 p.m. UTC
If the user sets an illegal value, although it will not take effect, error messages will be frequently printed until the GLIBC_TUNABLES environment variable is canceled or set to a new valid value, and the error message will not be printed.
---
 elf/dl-tunables.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/elf/dl-tunables.c b/elf/dl-tunables.c
index 147cc4cf23..ac5cf1cc32 100644
--- a/elf/dl-tunables.c
+++ b/elf/dl-tunables.c
@@ -242,7 +242,7 @@  parse_tunables_string (const char *valstring, struct tunable_toset_t *tunables)
 static void
 parse_tunable_print_error (const struct tunable_toset_t *toset)
 {
-  _dl_error_printf ("WARNING: ld.so: invalid GLIBC_TUNABLES value `%.*s' "
+  _dl_debug_printf ("WARNING: ld.so: invalid GLIBC_TUNABLES value `%.*s' "
 		    "for option `%s': ignored.\n",
 		    (int) toset->len,
 		    toset->value,
@@ -255,7 +255,7 @@  parse_tunables (const char *valstring)
   struct tunable_toset_t tunables[tunables_list_size] = { 0 };
   if (parse_tunables_string (valstring, tunables) == -1)
     {
-      _dl_error_printf (
+      _dl_debug_printf (
         "WARNING: ld.so: invalid GLIBC_TUNABLES `%s': ignored.\n", valstring);
       return;
     }