From de0a39eb72b2db413978b5426f7cf376b1edf99b Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Thu, 22 Apr 2021 14:38:46 +0200 Subject: Failing to enable oneway spam detection is not an error. We probably shouldn't even print anything, but certainly no error until this is more widely available. Bug: 186071136 Test: N/A Change-Id: I92d91172bd73fbec831234dc0abc6e071032d86f --- libs/binder/ProcessState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/binder/ProcessState.cpp') diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index ca99042342..a2efb1c95f 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -362,7 +362,7 @@ status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) { status_t ProcessState::enableOnewaySpamDetection(bool enable) { uint32_t enableDetection = enable ? 1 : 0; if (ioctl(mDriverFD, BINDER_ENABLE_ONEWAY_SPAM_DETECTION, &enableDetection) == -1) { - ALOGE("Binder ioctl to enable oneway spam detection failed: %s", strerror(errno)); + ALOGI("Binder ioctl to enable oneway spam detection failed: %s", strerror(errno)); return -errno; } return NO_ERROR; @@ -401,7 +401,7 @@ static int open_driver(const char *driver) uint32_t enable = DEFAULT_ENABLE_ONEWAY_SPAM_DETECTION; result = ioctl(fd, BINDER_ENABLE_ONEWAY_SPAM_DETECTION, &enable); if (result == -1) { - ALOGE("Binder ioctl to enable oneway spam detection failed: %s", strerror(errno)); + ALOGI("Binder ioctl to enable oneway spam detection failed: %s", strerror(errno)); } } else { ALOGW("Opening '%s' failed: %s\n", driver, strerror(errno)); -- cgit v1.2.3-59-g8ed1b