From: Josh Wu <josh.wu@atmel.com>
To: Jingoo Han <jg1.han@samsung.com>,
'Brian Norris' <computersforpeace@gmail.com>
Cc: linux-mtd@lists.infradead.org, 'David Woodhouse' <dwmw2@infradead.org>
Subject: Re: [PATCH V2 1/4] mtd: atmel_nand: use dev_err() instead of printk()
Date: Fri, 27 Dec 2013 14:56:39 +0800 [thread overview]
Message-ID: <52BD24A7.4010200@atmel.com> (raw)
In-Reply-To: <009c01cf01ea$e48f10f0$adad32d0$%han@samsung.com>
On 12/26/2013 11:30 AM, Jingoo Han wrote:
> Use dev_err() instead of printk() to provide a better message
> to userspace.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Josh Wu <josh.wu@atmel.com>
Best Regards,
Josh Wu
> ---
> Change since v1
> - Remove the site-specific OOM messages.
>
> drivers/mtd/nand/atmel_nand.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
> index e633c44..c36e9b8 100644
> --- a/drivers/mtd/nand/atmel_nand.c
> +++ b/drivers/mtd/nand/atmel_nand.c
> @@ -2060,14 +2060,14 @@ static int atmel_nand_probe(struct platform_device *pdev)
> }
>
> if (gpio_get_value(host->board.det_pin)) {
> - printk(KERN_INFO "No SmartMedia card inserted.\n");
> + dev_info(&pdev->dev, "No SmartMedia card inserted.\n");
> res = -ENXIO;
> goto err_no_card;
> }
> }
>
> if (host->board.on_flash_bbt || on_flash_bbt) {
> - printk(KERN_INFO "atmel_nand: Use On Flash BBT\n");
> + dev_info(&pdev->dev, "Use On Flash BBT\n");
> nand_chip->bbt_options |= NAND_BBT_USE_FLASH;
> }
>
next prev parent reply other threads:[~2013-12-27 6:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-26 3:29 [PATCH 0/4] mtd: nan: use dev_err() instead of printk() Jingoo Han
2013-12-26 3:30 ` [PATCH V2 1/4] mtd: atmel_nand: " Jingoo Han
2013-12-27 6:56 ` Josh Wu [this message]
2013-12-26 3:31 ` [PATCH V2 2/4] mtd: fsmc_nand: use dev_warn() " Jingoo Han
2014-01-07 17:56 ` Linus Walleij
2013-12-26 3:31 ` [PATCH V2 3/4] mtd: orion_nand: use dev_err() " Jingoo Han
2013-12-26 3:32 ` [PATCH V2 4/4] mtd: sharpsl: " Jingoo Han
2014-01-03 18:26 ` [PATCH 0/4] mtd: nan: " Brian Norris
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=52BD24A7.4010200@atmel.com \
--to=josh.wu@atmel.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=jg1.han@samsung.com \
--cc=linux-mtd@lists.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 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 NNTP newsgroup(s).