From: 陈恒明 Date: Sat, 4 Dec 2010 05:13:35 +0000 (-0800) Subject: rk29: vpu_mem: remove debug print X-Git-Tag: firefly_0821_release~10998 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b8f7f693fedaa01ad15f7be604f67d97b1d4de35;p=firefly-linux-kernel-4.4.55.git rk29: vpu_mem: remove debug print --- diff --git a/arch/arm/mach-rk29/vpu_mem.c b/arch/arm/mach-rk29/vpu_mem.c index 6e4ec63a2756..1206c848f385 100644 --- a/arch/arm/mach-rk29/vpu_mem.c +++ b/arch/arm/mach-rk29/vpu_mem.c @@ -32,7 +32,7 @@ #define VPU_MEM_MAX_ORDER 128 #define VPU_MEM_MIN_ALLOC PAGE_SIZE -#define VPU_MEM_DEBUG 1 +#define VPU_MEM_DEBUG 0 #define VPU_MEM_SPLIT_ALLOC 0 #define VPU_MEM_SPLIT_LINK 1 @@ -375,16 +375,18 @@ static long vpu_mem_allocate(struct file *file, unsigned int len) if (VPU_MEM_PFN(curr) >= (unsigned char)pfn) { /* set the not free bit and clear others */ best_fit = curr; - printk("find fit size at index %d\n", curr); +#if VPU_MEM_DEBUG + printk("vpu_mem: find fit size at index %d\n", curr); +#endif break; } } #if VPU_MEM_DEBUG - printk(KERN_INFO "curr %d\n!", curr); + printk(KERN_INFO "vpu_mem: search curr %d\n!", curr); #endif curr = VPU_MEM_NEXT_INDEX(curr); #if VPU_MEM_DEBUG - printk(KERN_INFO "next %d\n!", curr); + printk(KERN_INFO "vpu_mem: search next %d\n!", curr); #endif } @@ -640,7 +642,7 @@ static int vpu_mem_mmap(struct file *file, struct vm_area_struct *vma) data = (struct vpu_mem_data *)file->private_data; #if VPU_MEM_DEBUG - printk(KERN_ALERT "file->private_data : 0x%x\n", (unsigned int)data); + printk(KERN_ALERT "vpu_mem: file->private_data : 0x%x\n", (unsigned int)data); #endif down_write(&data->sem);