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
Showing
- include/input/InputDevice.h 2 additions, 0 deletionsinclude/input/InputDevice.h
- libs/input/InputTransport.cpp 7 additions, 6 deletionslibs/input/InputTransport.cpp
- services/inputflinger/dispatcher/Entry.cpp 4 additions, 2 deletionsservices/inputflinger/dispatcher/Entry.cpp
- services/inputflinger/reader/mapper/InputMapper.cpp 3 additions, 1 deletionservices/inputflinger/reader/mapper/InputMapper.cpp
- services/inputflinger/reader/mapper/TouchInputMapper.cpp 11 additions, 7 deletionsservices/inputflinger/reader/mapper/TouchInputMapper.cpp
- services/inputflinger/reader/mapper/TouchInputMapper.h 2 additions, 0 deletionsservices/inputflinger/reader/mapper/TouchInputMapper.h
- services/inputflinger/tests/InputReader_test.cpp 2 additions, 2 deletionsservices/inputflinger/tests/InputReader_test.cpp
Loading
Please register or sign in to comment