From: Ingo Molnar <mingo@kernel.org>
To: David Ahern <dsahern@gmail.com>
Cc: acme@ghostprotocols.net, linux-kernel@vger.kernel.org,
Frederic Weisbecker <fweisbec@gmail.com>,
Peter Zijlstra <peterz@infradead.org>,
Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
Stephane Eranian <eranian@google.com>
Subject: Re: [PATCH] perf: detect when perf.data file not closed out properly
Date: Thu, 9 May 2013 11:32:53 +0200 [thread overview]
Message-ID: <20130509093253.GA21690@gmail.com> (raw)
In-Reply-To: <1368025728-4669-1-git-send-email-dsahern@gmail.com>
* David Ahern <dsahern@gmail.com> wrote:
> + pr_err("data size is 0. "
> + "Was the record command properly terminated?\n");
Btw., a small stylistic request: please put user-visible strings into a
single line - even if it technically turns into an overlong line.
pr_err("data size is 0. Was the record command properly terminated?\n");
This 1) makes it easier for people to git grep the error text they are
seeing during usage 2) makes it easier for _developers_ to see the
messages they are outputing to users.
For example from the single-line output it's immediately visible that it
should be capitalized thusly:
pr_err("Data size is 0. Was the record command properly terminated?\n");
:-)
Thanks,
Ingo
next prev parent reply other threads:[~2013-05-09 9:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-08 15:08 [PATCH] perf: detect when perf.data file not closed out properly David Ahern
2013-05-09 9:32 ` Ingo Molnar [this message]
2013-05-09 13:59 ` David Ahern
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=20130509093253.GA21690@gmail.com \
--to=mingo@kernel.org \
--cc=acme@ghostprotocols.net \
--cc=dsahern@gmail.com \
--cc=eranian@google.com \
--cc=fweisbec@gmail.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
/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.