summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2025-02-18 00:56:12 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-02-18 00:56:12 -0800
commitd442304ae59342d9e4f93608391950a7d9f709f0 (patch)
treecd077a80c926323ad15ca38dc018f0a8faec492d
parent3ffd1628c4c13d7c14901f267b21dab6001be5ea (diff)
parent93145fb1181a92f06256b667f090bff0689eb542 (diff)
Merge "SlopController: fix formatting of logged values" into main
-rw-r--r--services/inputflinger/reader/mapper/SlopController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/inputflinger/reader/mapper/SlopController.cpp b/services/inputflinger/reader/mapper/SlopController.cpp
index 9ec02a6f86..d55df511e1 100644
--- a/services/inputflinger/reader/mapper/SlopController.cpp
+++ b/services/inputflinger/reader/mapper/SlopController.cpp
@@ -54,13 +54,13 @@ float SlopController::consumeEvent(nsecs_t eventTimeNanos, float value) {
mCumulativeValue += value;
if (abs(mCumulativeValue) >= mSlopThreshold) {
- ALOGD("SlopController: did not drop event with value .%3f", value);
+ ALOGD("SlopController: did not drop event with value %.3f", value);
mHasSlopBeenMet = true;
// Return the amount of value that exceeds the slop.
return signOf(value) * (abs(mCumulativeValue) - mSlopThreshold);
}
- ALOGD("SlopController: dropping event with value .%3f", value);
+ ALOGD("SlopController: dropping event with value %.3f", value);
return 0;
}