[PATCH 2/2] Add write_message_to_stderr and use it instead of write

Florian Weimer fweimer@redhat.com
Mon Nov 7 17:32:00 GMT 2016


On 11/01/2016 01:43 AM, Gabriel F. T. Gomes wrote:
>
> +/* Write a message to standard error.  Can be used in signal handlers.  */
> +static void
> +__attribute__ ((unused))
> +write_message_to_stderr (const char *message)
> +{
> +  ssize_t unused __attribute__ ((unused));
> +  unused = write (STDERR_FILENO, message, strlen (message));
> +}

These messages should really go to standard output, so you can adjust 
the tests to use plain write_message instead and drop this hunk.

Thanks,
Florian



More information about the Libc-alpha mailing list