From 087f3b74afb8ba814fee8c76c668badece0c06f4 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Tue, 11 Jul 2017 15:02:44 -0700 Subject: [PATCH] Remove old LOG_EVENT_* code from libsysutils As a side effect, this change fixes libbsysutils => liblog dependencies. LOG_EVENT_* macros are not defined for liblog.vendor. Test: BOARD_VNDK_VERSION=current mma Bug: 33241851 Bug: 63034227 Change-Id: I3df700d97481ec9aa59cf1796da1e991af28bdf5 --- libsysutils/src/FrameworkListener.cpp | 1 - libsysutils/src/NetlinkListener.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/libsysutils/src/FrameworkListener.cpp b/libsysutils/src/FrameworkListener.cpp index 6f76e7679..87e2684f4 100644 --- a/libsysutils/src/FrameworkListener.cpp +++ b/libsysutils/src/FrameworkListener.cpp @@ -211,7 +211,6 @@ out: return; overflow: - LOG_EVENT_INT(78001, cli->getUid()); cli->sendMsg(500, "Command too long", false); goto out; } diff --git a/libsysutils/src/NetlinkListener.cpp b/libsysutils/src/NetlinkListener.cpp index 896dad3a6..aad0394da 100644 --- a/libsysutils/src/NetlinkListener.cpp +++ b/libsysutils/src/NetlinkListener.cpp @@ -57,8 +57,6 @@ bool NetlinkListener::onDataAvailable(SocketClient *cli) count = TEMP_FAILURE_RETRY(uevent_kernel_recv(socket, mBuffer, sizeof(mBuffer), require_group, &uid)); if (count < 0) { - if (uid > 0) - LOG_EVENT_INT(65537, uid); SLOGE("recvmsg failed (%s)", strerror(errno)); return false; }