misc: cap_prox: Remove log spam
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 3 Dec 2010 20:48:05 +0000 (12:48 -0800)
committerRebecca 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

index 89e4f9fd9ef8a94f1f4f11491ba3426858642802..2d596eb95b9c72189d951d83701981db3f2571c9 100755 (executable)
@@ -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;