libsysutils: Hide NetlinkListener error in recovery
* Prevents users from seeing this message in recovery: `E:recvmsg failed (No buffer space available)` * This is caused by volume_manager (our addition in recovery) and hiding this error does not seem to have any negative side effect. Change-Id: I0d65796961c3036289ed13c0b8949a27b5b97ad6
This commit is contained in:
parent
1df7e70fa5
commit
ea0649f622
|
@ -57,7 +57,11 @@ bool NetlinkListener::onDataAvailable(SocketClient *cli)
|
||||||
count = TEMP_FAILURE_RETRY(uevent_kernel_recv(socket,
|
count = TEMP_FAILURE_RETRY(uevent_kernel_recv(socket,
|
||||||
mBuffer, sizeof(mBuffer), require_group, &uid));
|
mBuffer, sizeof(mBuffer), require_group, &uid));
|
||||||
if (count < 0) {
|
if (count < 0) {
|
||||||
|
#ifdef __ANDROID_RECOVERY__
|
||||||
|
SLOGW("recvmsg failed (%s)", strerror(errno));
|
||||||
|
#else
|
||||||
SLOGE("recvmsg failed (%s)", strerror(errno));
|
SLOGE("recvmsg failed (%s)", strerror(errno));
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue