From c57cd3c5ff1b4a69d4a96d5d7e6677a734069d49 Mon Sep 17 00:00:00 2001 From: Harry Cutts Date: Wed, 24 Apr 2024 13:52:55 +0000 Subject: input: fix -Wformat warnings These occur when an enum value is formatted as an integer without a cast. In all these cases the debug logs are nicer if we use the actual name of the enum value, so wrap them all in ftl::enum_string calls. Bug: 245989146 Test: Check there are no -Wformat warnings in the output of $ m checkinput Change-Id: I26333123e9fb445f1640c5e73757ddf4ad2d6e98 --- include/input/InputDevice.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/input') diff --git a/include/input/InputDevice.h b/include/input/InputDevice.h index 57b659d9ee..d7aeb31d2d 100644 --- a/include/input/InputDevice.h +++ b/include/input/InputDevice.h @@ -115,6 +115,8 @@ enum class InputDeviceSensorAccuracy : int32_t { ACCURACY_LOW = 1, ACCURACY_MEDIUM = 2, ACCURACY_HIGH = 3, + + ftl_last = ACCURACY_HIGH, }; enum class InputDeviceSensorReportingMode : int32_t { -- cgit v1.2.3-59-g8ed1b