From: "Petr Mládek" <pmladek@suse.cz>
To: Alex Elder <elder@linaro.org>
Cc: akpm@linux-foundation.org, ak@linux.intel.com, bp@suse.de,
jack@suse.cz, john.stultz@linaro.org, rostedt@goodmis.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/4] printk: fix some comments
Date: Wed, 9 Jul 2014 17:53:53 +0200 [thread overview]
Message-ID: <20140709155352.GA6774@pathway.suse.cz> (raw)
In-Reply-To: <1404911056-29064-3-git-send-email-elder@linaro.org>
On Wed 2014-07-09 08:04:14, Alex Elder wrote:
> This patch fixes a few comments that don't accurately describe their
> corresponding code. It also fixes some minor typographical errors.
>
> Signed-off-by: Alex Elder <elder@linaro.org>
Nice clean up. All changes make sense to me.
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Best Regards,
Petr
> ---
> kernel/printk/printk.c | 23 ++++++++++++-----------
> 1 file changed, 12 insertions(+), 11 deletions(-)
>
> diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
> index ac2b64e..646146c 100644
> --- a/kernel/printk/printk.c
> +++ b/kernel/printk/printk.c
> @@ -113,9 +113,9 @@ static int __down_trylock_console_sem(unsigned long ip)
> * This is used for debugging the mess that is the VT code by
> * keeping track if we have the console semaphore held. It's
> * definitely not the perfect debug tool (we don't know if _WE_
> - * hold it are racing, but it helps tracking those weird code
> - * path in the console code where we end up in places I want
> - * locked without the console sempahore held
> + * hold it and are racing, but it helps tracking those weird code
> + * paths in the console code where we end up in places I want
> + * locked without the console sempahore held).
> */
> static int console_locked, console_suspended;
>
> @@ -146,8 +146,8 @@ static int console_may_schedule;
> * the overall length of the record.
> *
> * The heads to the first and last entry in the buffer, as well as the
> - * sequence numbers of these both entries are maintained when messages
> - * are stored..
> + * sequence numbers of these entries are maintained when messages are
> + * stored.
> *
> * If the heads indicate available messages, the length in the header
> * tells the start next message. A length == 0 for the next message
> @@ -344,7 +344,7 @@ static int log_make_free_space(u32 msg_size)
> while (log_first_seq < log_next_seq) {
> if (logbuf_has_space(msg_size, false))
> return 0;
> - /* drop old messages until we have enough continuous space */
> + /* drop old messages until we have enough contiguous space */
> log_first_idx = log_next(log_first_idx);
> log_first_seq++;
> }
> @@ -1476,7 +1476,7 @@ static struct cont {
> struct task_struct *owner; /* task of first print*/
> u64 ts_nsec; /* time of first print */
> u8 level; /* log level of first message */
> - u8 facility; /* log level of first message */
> + u8 facility; /* log facility of first message */
> enum log_flags flags; /* prefix, newline flags */
> bool flushed:1; /* buffer sealed and committed */
> } cont;
> @@ -1881,11 +1881,12 @@ static int __add_preferred_console(char *name, int idx, char *options,
> return 0;
> }
> /*
> - * Set up a list of consoles. Called from init/main.c
> + * Set up a console. Called via do_early_param() in init/main.c
> + * for each "console=" parameter in the boot command line.
> */
> static int __init console_setup(char *str)
> {
> - char buf[sizeof(console_cmdline[0].name) + 4]; /* 4 for index */
> + char buf[sizeof(console_cmdline[0].name) + 4]; /* 4 for "ttyS" */
> char *s, *options, *brl_options = NULL;
> int idx;
>
> @@ -2045,8 +2046,8 @@ EXPORT_SYMBOL(console_lock);
> /**
> * console_trylock - try to lock the console system for exclusive use.
> *
> - * Tried to acquire a lock which guarantees that the caller has
> - * exclusive access to the console system and the console_drivers list.
> + * Try to acquire a lock which guarantees that the caller has exclusive
> + * access to the console system and the console_drivers list.
> *
> * returns 1 on success, and 0 on failure to acquire the lock.
> */
> --
> 1.9.1
>
next prev parent reply other threads:[~2014-07-09 15:53 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-09 13:04 [PATCH 0/4] printk: some minor fixups Alex Elder
2014-07-09 13:04 ` [PATCH 1/4] printk: rename DEFAULT_MESSAGE_LOGLEVEL Alex Elder
2014-07-09 15:00 ` Borislav Petkov
2014-07-09 15:10 ` Alex Elder
2014-07-09 15:13 ` Borislav Petkov
2014-07-09 15:14 ` Alex Elder
2014-07-09 15:17 ` Borislav Petkov
2014-07-09 13:04 ` [PATCH 2/4] printk: fix some comments Alex Elder
2014-07-09 15:53 ` Petr Mládek [this message]
2014-07-09 13:04 ` [PATCH 3/4] printk: use a clever macro Alex Elder
2014-07-09 15:05 ` Borislav Petkov
2014-07-09 16:19 ` Petr Mládek
2014-07-09 16:24 ` Borislav Petkov
2014-07-09 16:32 ` Petr Mládek
2014-07-09 16:40 ` Borislav Petkov
2014-07-09 17:58 ` Geert Uytterhoeven
2014-07-09 18:15 ` Alex Elder
2014-07-09 13:04 ` [PATCH 4/4] printk: miscellaneous cleanups Alex Elder
2014-07-09 16:29 ` Petr Mládek
2014-07-09 16:45 ` Alex Elder
2014-07-09 16:03 ` Alex Elder
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=20140709155352.GA6774@pathway.suse.cz \
--to=pmladek@suse.cz \
--cc=ak@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=bp@suse.de \
--cc=elder@linaro.org \
--cc=jack@suse.cz \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox