public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
To: Yu Chien Peter Lin <peterlin@andestech.com>
Cc: <libc-alpha@sourceware.org>,
	 fweimer@redhat.com, ycliang@andestech.com,
	 alankao@andestech.com
Subject: Re: [PATCH] nptl: Fix typo in error message
Date: Thu, 29 Sep 2022 12:01:38 +0200	[thread overview]
Message-ID: <87o7uy7b3x.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <20220929085738.12027-1-peterlin@andestech.com> (Yu Chien Peter Lin's message of "Thu, 29 Sep 2022 16:57:38 +0800")

* Yu Chien Peter Lin:

> Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
> ---
>  nptl/tst-setuid2.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/nptl/tst-setuid2.c b/nptl/tst-setuid2.c
> index aff3b1a97d..fed2671b01 100644
> --- a/nptl/tst-setuid2.c
> +++ b/nptl/tst-setuid2.c
> @@ -77,7 +77,7 @@ run_on_thread (void (*func) (void))
>  
>    ret = pthread_cond_signal (&cond_send);
>    if (ret != 0)
> -    FAIL ("pthread_mutex_lock (%s): %d", __func__, ret);
> +    FAIL ("pthread_cond_signal (send): %d", ret);
>  
>    ret = pthread_mutex_lock (&mutex);
>    if (ret != 0)
> @@ -87,7 +87,7 @@ run_on_thread (void (*func) (void))
>      {
>        ret = pthread_cond_wait (&cond_recv, &mutex);
>        if (ret != 0)
> -	FAIL ("pthread_mutex_wait (%s): %d", __func__, ret);
> +	FAIL ("pthread_cond_wait (recv): %d", ret);
>      }
>    ret = pthread_mutex_unlock (&mutex);
>    if (ret != 0)

Maybe introduce xpthread_cond_signal in a separate patch and use
xpthread_cond_signal and xpthread_cond_wait instead?  The latter
already exists.

  reply	other threads:[~2022-09-29 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-29  8:57 Yu Chien Peter Lin
2022-09-29 10:01 ` Florian Weimer [this message]
2022-09-30 14:28   ` Yu-Chien Peter Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o7uy7b3x.fsf@mid.deneb.enyo.de \
    --to=fw@deneb.enyo.de \
    --cc=alankao@andestech.com \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=peterlin@andestech.com \
    --cc=ycliang@andestech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).