[PATCH 5/8] elf: Emit tunconf "not recognized" warning on stderr
Adhemerval Zanella
adhemerval.zanella@linaro.org
Mon Jul 6 21:14:41 GMT 2026
For consistency with other errors.
Checked on x86_64-linux-gnu and i686-linux-gnu.
---
elf/tunconf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elf/tunconf.c b/elf/tunconf.c
index c27b50b1de0..fa0d01b53e4 100644
--- a/elf/tunconf.c
+++ b/elf/tunconf.c
@@ -316,8 +316,8 @@ add_tunable (char *line, const char *filename, int lineno)
break;
}
if (id == -1)
- printf ("%s:%d: Warning: tunable %s not recognized.\n",
- filename, lineno, name);
+ error_at_line (0, 0, filename, lineno,
+ "Warning: tunable %s not recognized", name);
entry = (struct tunable_entry_int *) xcalloc (sizeof (struct tunable_entry_int), 1);
entry->name = cache_store_string (name);
--
2.43.0
More information about the Libc-alpha
mailing list