提交 25971865 编写于 作者: A Andres Salomon 提交者: H. Peter Anvin

x86, olpc: Use pr_debug() for EC commands

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: NAndres Salomon <dilinger@queued.net>
LKML-Reference: <20100616231928.16b539f0@dev.queued.net>
Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
上级 75a9cac4
...@@ -142,7 +142,7 @@ int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen, ...@@ -142,7 +142,7 @@ int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen,
* The OBF flag will sometimes misbehave due to what we believe * The OBF flag will sometimes misbehave due to what we believe
* is a hardware quirk.. * 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); outb(cmd, 0x6c);
if (wait_on_ibf(0x6c, 0)) { if (wait_on_ibf(0x6c, 0)) {
...@@ -159,8 +159,7 @@ int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen, ...@@ -159,8 +159,7 @@ int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen,
" EC accept data!\n"); " EC accept data!\n");
goto err; goto err;
} }
printk(KERN_DEBUG "olpc-ec: sending cmd arg 0x%x\n", pr_devel("olpc-ec: sending cmd arg 0x%x\n", inbuf[i]);
inbuf[i]);
outb(inbuf[i], 0x68); outb(inbuf[i], 0x68);
} }
} }
...@@ -173,8 +172,7 @@ int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen, ...@@ -173,8 +172,7 @@ int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen,
goto restart; goto restart;
} }
outbuf[i] = inb(0x68); outbuf[i] = inb(0x68);
printk(KERN_DEBUG "olpc-ec: received 0x%x\n", pr_devel("olpc-ec: received 0x%x\n", outbuf[i]);
outbuf[i]);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册