Audit messages in Glibc
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Fri Oct 31 11:44:15 GMT 2025
On 31/10/25 07:48, Yury Khrustalev via Libc-help wrote:
> Hi,
>
> I have the following use case: there is a runtime check that, if
> enabled, would abort the process if check fails. Sometimes it might be
> useful to do the check but avoid aborting the process and instead print
> a warning message somehow to allow for audit of such warning messages.
>
> Is there some existing provision for such warning messages in Glibc
> already. It seems like just fprintf (stderr, ...) might not be the best
> way to do it?
We have the error.h definition [1], maybe you want something like:
if (check)
warn (...)
[1] https://sourceware.org/glibc/manual/2.42/html_node/Error-Messages.html
More information about the Libc-help
mailing list