diff options
| author | 2021-04-22 18:50:56 +0000 | |
|---|---|---|
| committer | 2021-04-22 18:50:56 +0000 | |
| commit | f45fd103bf2ef1ae7b528daf67cbcb487b1a5045 (patch) | |
| tree | 5528b3d100b17558315f37a8a6cec38b556bb3f5 /libs/binder/ProcessState.cpp | |
| parent | fa030dc23f3ef12abfc37a7b1fe713fb53a446a0 (diff) | |
| parent | c708616d874c67ff21001fb624ce9c990b38765e (diff) | |
Merge "Failing to enable oneway spam detection is not an error." am: ccd2b60c30 am: 5c84d6004d am: c708616d87
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1683871
Change-Id: I68b40e32ab7a0e88710b4200bb9b800fff1ca0a7
Diffstat (limited to 'libs/binder/ProcessState.cpp')
| -rw-r--r-- | libs/binder/ProcessState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 0414e76bfe..1d3beb4736 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)); |