diff options
| author | 2024-04-24 13:52:55 +0000 | |
|---|---|---|
| committer | 2024-04-24 13:55:21 +0000 | |
| commit | c57cd3c5ff1b4a69d4a96d5d7e6677a734069d49 (patch) | |
| tree | e2af7764b7c87a16d6e6ac235d334100a48c14d3 /include/input/InputDevice.h | |
| parent | 8be726605023df669359c4b5148cdc6bf874b34b (diff) | |
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
Diffstat (limited to 'include/input/InputDevice.h')
| -rw-r--r-- | include/input/InputDevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |