diff --git a/libsysutils/src/NetlinkListener.cpp b/libsysutils/src/NetlinkListener.cpp index aad0394da..3dc2e4355 100644 --- a/libsysutils/src/NetlinkListener.cpp +++ b/libsysutils/src/NetlinkListener.cpp @@ -57,7 +57,11 @@ bool NetlinkListener::onDataAvailable(SocketClient *cli) count = TEMP_FAILURE_RETRY(uevent_kernel_recv(socket, mBuffer, sizeof(mBuffer), require_group, &uid)); if (count < 0) { +#ifdef __ANDROID_RECOVERY__ + SLOGW("recvmsg failed (%s)", strerror(errno)); +#else SLOGE("recvmsg failed (%s)", strerror(errno)); +#endif return false; }