From patchwork Tue May 17 17:29:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: anish X-Patchwork-Id: 791972 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4HHTAEV031120 for ; Tue, 17 May 2011 17:29:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755826Ab1EQR3J (ORCPT ); Tue, 17 May 2011 13:29:09 -0400 Received: from mail-px0-f173.google.com ([209.85.212.173]:55605 "EHLO mail-px0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755722Ab1EQR3I (ORCPT ); Tue, 17 May 2011 13:29:08 -0400 Received: by pxi16 with SMTP id 16so489654pxi.4 for ; Tue, 17 May 2011 10:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:content-type:date:message-id :mime-version:x-mailer; bh=KcE34863MlINeSoFIPx13qYlIU7v4TJ35Y7c08xm7PQ=; b=LR6jvqI3jELuod6clwJB3uJyvgwq8yLdbLPFCtmrouK5ZnYXD8a4pXCD7ssyJtOllP 4BAunBRxLWVogYGza8qQWVKQzX+fNOpGDMp1uSTrl5MpywTzKsFk5l7k9wj3FLuiec7N I8GGEGdd3B3CVZTIZ/n2642jbPOw86sdbLfjc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer; b=jhtWaImdpok8fwVb6hvA7WZ769ohyDb9gWv+mwcULSn34KmPIehorSYGOgmrolgdRN S/Ea8KQF/yCPkbkmrv2wM9nxvTaCCQUiY9oM9WdSNGESxAHar1wOxxcgq1scMrXnzQKq yuBiXI3FgCLOO/01nbD5Jn+wp+KEg9deu3TOw= Received: by 10.68.69.113 with SMTP id d17mr1352074pbu.472.1305653348265; Tue, 17 May 2011 10:29:08 -0700 (PDT) Received: from [192.168.0.196] ([123.236.219.232]) by mx.google.com with ESMTPS id b10sm491086pbq.22.2011.05.17.10.29.04 (version=SSLv3 cipher=OTHER); Tue, 17 May 2011 10:29:07 -0700 (PDT) Subject: [PATCH 2/2] trivial: Changed the printk loglevel when not able to allocate memory From: anish To: linux@arm.linux.org.uk, lethal@linux-sh.org Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 17 May 2011 22:59:02 +0530 Message-ID: <1305653342.2182.15.camel@anish-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 17 May 2011 17:29:10 +0000 (UTC) When not able to allocate memory we were using KERN_INFO as log level in printk so changed to KERN_ERR Signed-off-by: anish kumar --- drivers/video/amba-clcd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From 19bbb666a6067a6ba280e2cb984c924bcaf06f52 Mon Sep 17 00:00:00 2001 From: anish kumar Date: Tue, 17 May 2011 22:50:59 +0530 Subject: [PATCH 2/2] Changed the printk loglevel when not able to allocate memory When not able to allocate memory we were using KERN_INFO so just changed to KERN_ERR Signed-off-by: anish kumar --- drivers/video/amba-clcd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index cb7ec86..e87d98b 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c @@ -551,7 +551,7 @@ static int clcdfb_probe(struct amba_device *dev, const struct amba_id *id) fb = kzalloc(sizeof(*fb), GFP_KERNEL); if (!fb) { - printk(KERN_INFO "CLCD: could not allocate new clcd_fb struct\n"); + printk(KERN_ERR "CLCD: could not allocate new clcd_fb struct\n"); ret = -ENOMEM; goto free_region; } -- 1.7.0.4