Only log when actually receiving actual switch events.
Also, turn off debug logging in a couple other classes and fix an
incorrect format specifier.
Bug: 25497538
Change-Id: I72af9492415fa6910af90caf03a7884c6cb1a0b1
diff --git a/modules/input/evdev/InputDevice.cpp b/modules/input/evdev/InputDevice.cpp
index b575117..5f90982 100644
--- a/modules/input/evdev/InputDevice.cpp
+++ b/modules/input/evdev/InputDevice.cpp
@@ -15,7 +15,7 @@
*/
#define LOG_TAG "InputDevice"
-#define LOG_NDEBUG 0
+//#define LOG_NDEBUG 0
// Enables debug output for processing input events
#define DEBUG_INPUT_EVENTS 0
@@ -219,7 +219,7 @@
//mMappers.push_back(std::make_unique<VibratorInputMapper>());
}
- ALOGD("device %s classes=0x%x %d mappers", mDeviceNode->getPath().c_str(), mClasses,
+ ALOGD("device %s classes=0x%x %zu mappers", mDeviceNode->getPath().c_str(), mClasses,
mMappers.size());
}