[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <06a83d7bf4f193098e93cc0f1721e982fcef310f.1242407227.git.joe@perches.com>
Date: Fri, 15 May 2009 10:59:41 -0700
From: Joe Perches <joe@...ches.com>
To: linux-kernel@...r.kernel.org
Subject: [PATCH 07/11] drivers/macintosh: Convert #ifdef DEBUG printk(KERN_DEBUG to pr_debug(
From: Joe Perches <joe@...ches.com>
Signed-off-by: Joe Perches <joe@...ches.com>
---
drivers/macintosh/ans-lcd.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/drivers/macintosh/ans-lcd.c b/drivers/macintosh/ans-lcd.c
index 6a82218..d8b4d75 100644
--- a/drivers/macintosh/ans-lcd.c
+++ b/drivers/macintosh/ans-lcd.c
@@ -32,9 +32,7 @@ static volatile unsigned char __iomem *anslcd_ptr;
static void
anslcd_write_byte_ctrl ( unsigned char c )
{
-#ifdef DEBUG
- printk(KERN_DEBUG "LCD: CTRL byte: %02x\n",c);
-#endif
+ pr_debug("LCD: CTRL byte: %02x\n",c);
out_8(anslcd_ptr + ANSLCD_CTRL_IX, c);
switch(c) {
case 1:
@@ -59,9 +57,7 @@ anslcd_write( struct file * file, const char __user * buf,
const char __user *p = buf;
int i;
-#ifdef DEBUG
- printk(KERN_DEBUG "LCD: write\n");
-#endif
+ pr_debug("LCD: write\n");
if (!access_ok(VERIFY_READ, buf, count))
return -EFAULT;
@@ -81,9 +77,7 @@ anslcd_ioctl( struct inode * inode, struct file * file,
{
char ch, __user *temp;
-#ifdef DEBUG
- printk(KERN_DEBUG "LCD: ioctl(%d,%d)\n",cmd,arg);
-#endif
+ pr_debug("LCD: ioctl(%d,%d)\n",cmd,arg);
switch ( cmd )
{
@@ -164,9 +158,7 @@ anslcd_init(void)
return retval;
}
-#ifdef DEBUG
- printk(KERN_DEBUG "LCD: init\n");
-#endif
+ pr_debug("LCD: init\n");
anslcd_write_byte_ctrl ( 0x38 );
anslcd_write_byte_ctrl ( 0x0c );
--
1.6.3.1.9.g95405b.dirty
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists