diff --git a/libs/common_time/common_time_server.cpp b/libs/common_time/common_time_server.cpp index f72ffaa637120..b1495effbc81c 100644 --- a/libs/common_time/common_time_server.cpp +++ b/libs/common_time/common_time_server.cpp @@ -615,12 +615,11 @@ bool CommonTimeServer::handlePacket() { ssize_t recvBytes = recvfrom( mSocket, buf, sizeof(buf), 0, - reinterpret_cast(&srcAddr), &srcAddrLen); + reinterpret_cast(&srcAddr), &srcAddrLen); if (recvBytes < 0) { - mBadPktLog.log(ANDROID_LOG_ERROR, LOG_TAG, - "recvfrom failed (res %d, errno %d)", - recvBytes, errno); + mBadPktLog.log(ANDROID_LOG_ERROR, LOG_TAG, "recvfrom failed (%s)", + strerror(errno)); return false; }