From: Rebecca Schultz Zavin Date: Fri, 3 Dec 2010 20:48:05 +0000 (-0800) Subject: misc: cap_prox: Remove log spam X-Git-Tag: firefly_0821_release~9834^2~284 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a6138c4f286470b9f8fa51034caf03914b766b53;p=firefly-linux-kernel-4.4.55.git misc: cap_prox: Remove log spam Make messages print only if the debug flag is enabled Change-Id: I998c69249a07d33189c95c553da55f85c47e59e7 Signed-off-by: Rebecca Schultz Zavin --- diff --git a/drivers/misc/cap_prox.c b/drivers/misc/cap_prox.c index 89e4f9fd9ef8..2d596eb95b9c 100755 --- 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;