]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86, olpc: Use pr_debug() for EC commands
authorAndres Salomon <dilinger@queued.net>
Thu, 17 Jun 2010 03:19:28 +0000 (23:19 -0400)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 31 Jul 2010 01:01:52 +0000 (18:01 -0700)
Unconditionally printing EC debug messages was helpful when we were actually
debugging the EC, but during normal operation it can get pretty annoying.
Using pr_debug allows us finer-grained control.

Signed-off-by: Andres Salomon <dilinger@queued.net>
LKML-Reference: <20100616231928.16b539f0@dev.queued.net>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/olpc.c

index 156605281f569583168aa98c1ab76619264198f4..f5ff3903b38b42df6dabb7ef1bebcab62b06ea6e 100644 (file)
@@ -142,7 +142,7 @@ restart:
         * The OBF flag will sometimes misbehave due to what we believe
         * is a hardware quirk..
         */
-       printk(KERN_DEBUG "olpc-ec:  running cmd 0x%x\n", cmd);
+       pr_devel("olpc-ec:  running cmd 0x%x\n", cmd);
        outb(cmd, 0x6c);
 
        if (wait_on_ibf(0x6c, 0)) {
@@ -159,8 +159,7 @@ restart:
                                                " EC accept data!\n");
                                goto err;
                        }
-                       printk(KERN_DEBUG "olpc-ec:  sending cmd arg 0x%x\n",
-                                       inbuf[i]);
+                       pr_devel("olpc-ec:  sending cmd arg 0x%x\n", inbuf[i]);
                        outb(inbuf[i], 0x68);
                }
        }
@@ -173,8 +172,7 @@ restart:
                                goto restart;
                        }
                        outbuf[i] = inb(0x68);
-                       printk(KERN_DEBUG "olpc-ec:  received 0x%x\n",
-                                       outbuf[i]);
+                       pr_devel("olpc-ec:  received 0x%x\n", outbuf[i]);
                }
        }