projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8774c
)
misc: cap_prox: Remove log spam
author
Rebecca Schultz Zavin
<rebecca@android.com>
Fri, 3 Dec 2010 20:48:05 +0000
(12:48 -0800)
committer
Rebecca Schultz Zavin
<rebecca@android.com>
Fri, 3 Dec 2010 20:48:05 +0000
(12:48 -0800)
Make messages print only if the debug flag is enabled
Change-Id: I998c69249a07d33189c95c553da55f85c47e59e7
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/misc/cap_prox.c
patch
|
blob
|
history
diff --git
a/drivers/misc/cap_prox.c
b/drivers/misc/cap_prox.c
index 89e4f9fd9ef8a94f1f4f11491ba3426858642802..2d596eb95b9c72189d951d83701981db3f2571c9 100755
(executable)
--- a/
drivers/misc/cap_prox.c
+++ b/
drivers/misc/cap_prox.c
@@
-230,8
+230,10
@@
static int cap_prox_read_data(struct cap_prox_data *cp)
cap_prox_calibrate(cp);
break;
default:
- pr_info("%s: Cap-prox message 0x%x\n", __func__,
- msg->status);
+ if (cp_dbg) {
+ pr_info("%s: Cap-prox message 0x%x\n", __func__,
+ msg->status);
+ }
break;
}
status = msg->status;