The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: anish <anish198519851985@gmail.com>
To: greg@kroah.com, teddy.wang@siliconmotion.com.cn
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 3/3] printk loglevels modified to match the scenario
Date: Sat, 14 May 2011 23:25:11 +0530	[thread overview]
Message-ID: <1305395711.7400.18.camel@anish-desktop> (raw)

KERN_ERR should be used in place of KERN_INFO in the case of
error scenarios.
Signed-off-by: anish kumar<anish198519851985@gmail.com>

---
drivers/staging/sm7xx/smtcfb.c |    8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/sm7xx/smtcfb.c
b/drivers/staging/sm7xx/smtcfb.c
index d1dd387..c8caf54 100644
--- a/drivers/staging/sm7xx/smtcfb.c
+++ b/drivers/staging/sm7xx/smtcfb.c
@@ -753,7 +753,7 @@ static int smtc_map_smem(struct smtcfb_info *sfb,
sfb->fb.screen_base = smtc_VRAMBaseAddress;

if (!sfb->fb.screen_base) {
- printk(KERN_INFO "%s: unable to map screen memory\n",
+ printk(KERN_ERR "%s: unable to map screen memory\n",
sfb->fb.fix.id);
return -ENOMEM;
}
@@ -908,7 +908,7 @@ static int __devinit smtcfb_pci_probe(struct pci_dev
*pdev,
}
#endif
if (!smtc_RegBaseAddress) {
- printk(KERN_INFO
+ printk(KERN_ERR
"%s: unable to map memory mapped IO\n",
sfb->fb.fix.id);
err = -ENOMEM;
@@ -943,7 +943,7 @@ static int __devinit smtcfb_pci_probe(struct pci_dev
*pdev,
smtc_seqw(0x6b, 0x02);
break;
default:
- printk(KERN_INFO
+ printk(KERN_ERR
"No valid Silicon Motion display chip was detected!\n");

goto failed_fb;
@@ -976,7 +976,7 @@ static int __devinit smtcfb_pci_probe(struct pci_dev
*pdev,
return 0;

  failed:
- printk(KERN_INFO "Silicon Motion, Inc.  primary display init fail\n");
+ printk(KERN_ERR "Silicon Motion, Inc.  primary display init fail\n");

smtc_unmap_smem(sfb);
smtc_unmap_mmio(sfb);
-- 
1.7.0.4




             reply	other threads:[~2011-05-15  3:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-14 17:55 anish [this message]
2011-05-16 15:49 ` [PATCH 3/3] printk loglevels modified to match the scenario [staging sm7xx] anish

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=1305395711.7400.18.camel@anish-desktop \
    --to=anish198519851985@gmail.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=teddy.wang@siliconmotion.com.cn \
    /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