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

Gabriel F. T. Gomes gftg@linux.vnet.ibm.com
Tue Nov 8 00:41:00 GMT 2016


On Mon, 7 Nov 2016 18:32:28 +0100
Florian Weimer <fweimer@redhat.com> wrote:

> 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.  Pushed with the changes as e0c68519.



More information about the Libc-alpha mailing list