From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Zygmunt Bazyli Krynicki <zkrynicki@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: Minor patch for perfbook
Date: Mon, 2 Jun 2014 10:51:46 -0700 [thread overview]
Message-ID: <20140602175146.GW22231@linux.vnet.ibm.com> (raw)
In-Reply-To: <CA+rru_O9D8rFiE-8vniGroi_Hx0p0YbkvWm=fE6jhMh+bpCsUQ@mail.gmail.com>
On Mon, Jun 02, 2014 at 07:24:43PM +0200, Zygmunt Bazyli Krynicki wrote:
> Hi.
>
> I sent this patch a while ago but I haven't seen any replies or it being
> applied in master so here it is again.
Either I fat-fingered it or a spam filter ate it. Either way, I have
queued this one and pushed it, thank you for catching it and for
resending!
Thanx, Paul
> Thanks
> ZK
> From ff8057f470c5c30a403dab66ed892005e1568ab7 Mon Sep 17 00:00:00 2001
> From: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
> Date: Mon, 28 Apr 2014 14:01:33 +0200
> Subject: [PATCH] Correct error message in lock_writer() in lock.c and
> toolsoftrade.tex
>
> Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
> ---
> CodeSamples/toolsoftrade/lock.c | 4 ++--
> toolsoftrade/toolsoftrade.tex | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/CodeSamples/toolsoftrade/lock.c b/CodeSamples/toolsoftrade/lock.c
> index 1c129e2..56489a7 100644
> --- a/CodeSamples/toolsoftrade/lock.c
> +++ b/CodeSamples/toolsoftrade/lock.c
> @@ -62,7 +62,7 @@ void *lock_writer(void *arg)
> pthread_mutex_t *pmlp = (pthread_mutex_t *)arg;
>
> if (pthread_mutex_lock(pmlp) != 0) {
> - perror("lock_reader:pthread_mutex_lock");
> + perror("lock_writer:pthread_mutex_lock");
> exit(-1);
> }
> for (i = 0; i < 3; i++) {
> @@ -70,7 +70,7 @@ void *lock_writer(void *arg)
> poll(NULL, 0, 5);
> }
> if (pthread_mutex_unlock(pmlp) != 0) {
> - perror("lock_reader:pthread_mutex_unlock");
> + perror("lock_writer:pthread_mutex_unlock");
> exit(-1);
> }
> return NULL;
> diff --git a/toolsoftrade/toolsoftrade.tex b/toolsoftrade/toolsoftrade.tex
> index b4a237a..c98f3a7 100644
> --- a/toolsoftrade/toolsoftrade.tex
> +++ b/toolsoftrade/toolsoftrade.tex
> @@ -549,7 +549,7 @@ the other will wait until the first thread releases the lock.
> 34 pthread_mutex_t *pmlp = (pthread_mutex_t *)arg;
> 35
> 36 if (pthread_mutex_lock(pmlp) != 0) {
> - 37 perror("lock_reader:pthread_mutex_lock");
> + 37 perror("lock_writer:pthread_mutex_lock");
> 38 exit(-1);
> 39 }
> 40 for (i = 0; i < 3; i++) {
> @@ -557,7 +557,7 @@ the other will wait until the first thread releases the lock.
> 42 poll(NULL, 0, 5);
> 43 }
> 44 if (pthread_mutex_unlock(pmlp) != 0) {
> - 45 perror("lock_reader:pthread_mutex_unlock");
> + 45 perror("lock_writer:pthread_mutex_unlock");
> 46 exit(-1);
> 47 }
> 48 return NULL;
> --
> 1.9.1
>
parent reply other threads:[~2014-06-02 17:51 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CA+rru_O9D8rFiE-8vniGroi_Hx0p0YbkvWm=fE6jhMh+bpCsUQ@mail.gmail.com>]
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=20140602175146.GW22231@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=perfbook@vger.kernel.org \
--cc=zkrynicki@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.