diff options
author | Andres Salomon <dilinger@queued.net> | 2010-06-16 23:19:28 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-07-30 21:01:52 -0400 |
commit | 25971865d48a8d0ece5307a59dbd3f06d05a7567 (patch) | |
tree | a580d38b7aaedd727a54a9ffeb493e9111b46da4 /arch | |
parent | 75a9cac430a1bd2a5219c74508ca01b0ddfddc9a (diff) |
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: Andres Salomon <dilinger@queued.net>
LKML-Reference: <20100616231928.16b539f0@dev.queued.net>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/olpc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/x86/kernel/olpc.c b/arch/x86/kernel/olpc.c index 156605281f56..f5ff3903b38b 100644 --- a/arch/x86/kernel/olpc.c +++ b/arch/x86/kernel/olpc.c | |||
@@ -142,7 +142,7 @@ restart: | |||
142 | * The OBF flag will sometimes misbehave due to what we believe | 142 | * The OBF flag will sometimes misbehave due to what we believe |
143 | * is a hardware quirk.. | 143 | * is a hardware quirk.. |
144 | */ | 144 | */ |
145 | printk(KERN_DEBUG "olpc-ec: running cmd 0x%x\n", cmd); | 145 | pr_devel("olpc-ec: running cmd 0x%x\n", cmd); |
146 | outb(cmd, 0x6c); | 146 | outb(cmd, 0x6c); |
147 | 147 | ||
148 | if (wait_on_ibf(0x6c, 0)) { | 148 | if (wait_on_ibf(0x6c, 0)) { |
@@ -159,8 +159,7 @@ restart: | |||
159 | " EC accept data!\n"); | 159 | " EC accept data!\n"); |
160 | goto err; | 160 | goto err; |
161 | } | 161 | } |
162 | printk(KERN_DEBUG "olpc-ec: sending cmd arg 0x%x\n", | 162 | pr_devel("olpc-ec: sending cmd arg 0x%x\n", inbuf[i]); |
163 | inbuf[i]); | ||
164 | outb(inbuf[i], 0x68); | 163 | outb(inbuf[i], 0x68); |
165 | } | 164 | } |
166 | } | 165 | } |
@@ -173,8 +172,7 @@ restart: | |||
173 | goto restart; | 172 | goto restart; |
174 | } | 173 | } |
175 | outbuf[i] = inb(0x68); | 174 | outbuf[i] = inb(0x68); |
176 | printk(KERN_DEBUG "olpc-ec: received 0x%x\n", | 175 | pr_devel("olpc-ec: received 0x%x\n", outbuf[i]); |
177 | outbuf[i]); | ||
178 | } | 176 | } |
179 | } | 177 | } |
180 | 178 | ||