Skip to contentSkip to conversation

trivial: amba-clcd.c changed the printk to pr_err

PATCH In review anish 1 participant 1 message May 18, 2011 Framebuffer layer

lore
Share & tools
lore

anish

author
#0 lore raw

PATCH 2/2 trivial: amba-clcd.c changed the printk to pr_err

As suggested by russell,printk in the fail scenario
is an error and should be reported at error severity.They cause things to stop working and so they are not just a warning so changed to pr_err.

---
 drivers/video/amba-clcd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/amba-clcd.c +2 -2
index 5fc983c..9f27c71 100644
@@ -545,13 +545,13 @@ static int clcdfb_probe(struct amba_device *dev, const struct amba_id *id)
 
 	ret = amba_request_regions(dev, NULL);
 	if (ret) {
-		printk(KERN_ERR "CLCD: unable to reserve regs region\n");
+		pr_err("CLCD: unable to reserve regs region\n");
 		goto out;
 	}
 
 	fb = kzalloc(sizeof(struct clcd_fb), GFP_KERNEL);
 	if (!fb) {
-		printk(KERN_INFO "CLCD: could not allocate new clcd_fb struct\n");
+		pr_err("CLCD: could not allocate new clcd_fb struct\n");
 		ret = -ENOMEM;
 		goto free_region;
 	}
Signature · 1 line
1.7.0.4