From patchwork Mon Feb 2 17:32:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominic Curran X-Patchwork-Id: 5082 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n12HX4JN004539 for ; Mon, 2 Feb 2009 17:33:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752609AbZBBRdD (ORCPT ); Mon, 2 Feb 2009 12:33:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752637AbZBBRdD (ORCPT ); Mon, 2 Feb 2009 12:33:03 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:47954 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752609AbZBBRdB (ORCPT ); Mon, 2 Feb 2009 12:33:01 -0500 Received: from dlep36.itg.ti.com ([157.170.170.91]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id n12HWpXG005030; Mon, 2 Feb 2009 11:32:56 -0600 Received: from gromit.am.dhcp.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id n12HWpLd024406; Mon, 2 Feb 2009 11:32:51 -0600 (CST) From: Dominic Curran To: "linux-omap" Subject: [OMAPZOOM][PATCH] ISP: Fix printk's error messages. Date: Mon, 2 Feb 2009 11:32:49 -0600 User-Agent: KMail/1.9.6 (enterprise 0.20071204.744707) Cc: klimov.linux@gmail.com MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200902021132.50290.dcurran@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Dominic Curran Subject: [OMAPZOOM][PATCH] ISP: Fix printk's error messages. This patch adds CRLF characters to some printk's. Added 'ISP_ERR' at beginning of message a thats how other printks are formated in this module. Reported-by: Alexey Klimov Signed-off-by: Dominic Curran --- drivers/media/video/isp/isp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: omapzoom04/drivers/media/video/isp/isp.c =================================================================== --- omapzoom04.orig/drivers/media/video/isp/isp.c +++ omapzoom04/drivers/media/video/isp/isp.c @@ -1175,13 +1175,14 @@ u32 isp_buf_allocation(void) buff_addr = (void *) vmalloc(ISP_BUFFER_MAX_SIZE); if (!buff_addr) { - printk(KERN_ERR "Cannot allocate memory "); + printk(KERN_ERR "ISP_ERR: Cannot allocate " + "ISP_WORKAROUND memory\n"); return -ENOMEM; } sglist_alloc = videobuf_vmalloc_to_sg(buff_addr, ISP_BUFFER_MAX_PAGES); if (!sglist_alloc) { - printk(KERN_ERR "videobuf_vmalloc_to_sg error"); + printk(KERN_ERR "ISP_ERR: videobuf_vmalloc_to_sg failed\n"); return -ENOMEM; } num_sc = dma_map_sg(NULL, sglist_alloc, ISP_BUFFER_MAX_PAGES, 1); @@ -1196,7 +1197,7 @@ u32 isp_buf_mmap(void) { buff_addr_mapped = ispmmu_map_sg(sglist_alloc, ISP_BUFFER_MAX_PAGES); if (!buff_addr_mapped) { - printk(KERN_ERR "ispmmu_map_sg mapping failed "); + printk(KERN_ERR "ISP_ERR: ispmmu_map_sg mapping failed\n"); return -ENOMEM; } isppreview_set_outaddr(buff_addr_mapped);