From: NeilBrown <neilb@suse.de>
To: Anton Blanchard <anton@samba.org>
Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] lib/raid6: Add log level to printks
Date: Tue, 14 Oct 2014 12:51:58 +1100 [thread overview]
Message-ID: <20141014125158.29d77b3e@notabene.brown> (raw)
In-Reply-To: <20141013230316.1cbe1b7e@kryten>
[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]
On Mon, 13 Oct 2014 23:03:16 +1100 Anton Blanchard <anton@samba.org> wrote:
>
> Signed-off-by: Anton Blanchard <anton@samba.org>
> ---
>
> Index: b/lib/raid6/algos.c
> ===================================================================
> --- a/lib/raid6/algos.c
> +++ b/lib/raid6/algos.c
> @@ -121,9 +121,9 @@ static inline const struct raid6_recov_c
> raid6_2data_recov = best->data2;
> raid6_datap_recov = best->datap;
>
> - printk("raid6: using %s recovery algorithm\n", best->name);
> + pr_info("raid6: using %s recovery algorithm\n", best->name);
> } else
> - printk("raid6: Yikes! No recovery algorithm found!\n");
> + pr_err("raid6: Yikes! No recovery algorithm found!\n");
>
> return best;
> }
> @@ -157,18 +157,18 @@ static inline const struct raid6_calls *
> bestperf = perf;
> best = *algo;
> }
> - printk("raid6: %-8s %5ld MB/s\n", (*algo)->name,
> + pr_info("raid6: %-8s %5ld MB/s\n", (*algo)->name,
> (perf*HZ) >> (20-16+RAID6_TIME_JIFFIES_LG2));
> }
> }
>
> if (best) {
> - printk("raid6: using algorithm %s (%ld MB/s)\n",
> + pr_info("raid6: using algorithm %s (%ld MB/s)\n",
> best->name,
> (bestperf*HZ) >> (20-16+RAID6_TIME_JIFFIES_LG2));
> raid6_call = *best;
> } else
> - printk("raid6: Yikes! No algorithm found!\n");
> + pr_err("raid6: Yikes! No algorithm found!\n");
>
> return best;
> }
> @@ -194,7 +194,7 @@ int __init raid6_select_algo(void)
> syndromes = (void *) __get_free_pages(GFP_KERNEL, 1);
>
> if (!syndromes) {
> - printk("raid6: Yikes! No memory available.\n");
> + pr_err("raid6: Yikes! No memory available.\n");
> return -ENOMEM;
> }
>
Applied - thanks.
NeilBrown
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
prev parent reply other threads:[~2014-10-14 1:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-13 12:03 Anton Blanchard
2014-10-14 1:51 ` NeilBrown [this message]
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=20141014125158.29d77b3e@notabene.brown \
--to=neilb@suse.de \
--cc=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.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
Powered by JetHome