* [PATCH] x86: OLPC: use pr_debug() for EC commands
@ 2010-06-17 3:19 Andres Salomon
2010-07-31 1:09 ` [tip:x86/olpc] x86, olpc: Use " tip-bot for Andres Salomon
0 siblings, 1 reply; 2+ messages in thread
From: Andres Salomon @ 2010-06-17 3:19 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, tglx, mingo, hpa, x86, cjb, pgf, richard
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.
(Richard, please yell if this shouldn't be done.)
Signed-off-by: Andres Salomon <dilinger@queued.net>
---
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 1566052..f5ff390 100644
--- a/arch/x86/kernel/olpc.c
+++ b/arch/x86/kernel/olpc.c
@@ -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]);
}
}
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* [tip:x86/olpc] x86, olpc: Use pr_debug() for EC commands
2010-06-17 3:19 [PATCH] x86: OLPC: use pr_debug() for EC commands Andres Salomon
@ 2010-07-31 1:09 ` tip-bot for Andres Salomon
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Andres Salomon @ 2010-07-31 1:09 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, dilinger, tglx, hpa
Commit-ID: 25971865d48a8d0ece5307a59dbd3f06d05a7567
Gitweb: http://git.kernel.org/tip/25971865d48a8d0ece5307a59dbd3f06d05a7567
Author: Andres Salomon <dilinger@queued.net>
AuthorDate: Wed, 16 Jun 2010 23:19:28 -0400
Committer: H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Fri, 30 Jul 2010 18:01:52 -0700
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>
---
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 1566052..f5ff3903 100644
--- a/arch/x86/kernel/olpc.c
+++ b/arch/x86/kernel/olpc.c
@@ -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]);
}
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-31 1:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17 3:19 [PATCH] x86: OLPC: use pr_debug() for EC commands Andres Salomon
2010-07-31 1:09 ` [tip:x86/olpc] x86, olpc: Use " tip-bot for Andres Salomon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox