Skip to contentSkip to conversation

ISP: Fix printk's error messages.

PATCH New Dominic Curran 1 participant 1 message Feb 2, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ISP: Fix printk's error messages.

From: Dominic Curran <[email protected]>
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.

---
 drivers/media/video/isp/isp.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/media/video/isp/isp.c +4 -3
Index: 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);