From b881fc4feb1229118a8a0c356d99218d8075fdda Mon Sep 17 00:00:00 2001 From: Nikita Ioffe Date: Wed, 28 Jul 2021 02:58:57 +0100 Subject: [PATCH] Remove vold logs related to block devices Since every APEX requires at least one loop device, now most of the block devices on a device are not managed by vold. This change removes some log statements around block devices that vold is not aware of. Test: device boots Test: adb logcat Change-Id: I8efa22023c1f888e75f40178fac464af4457df3c --- Devmapper.cpp | 2 -- Loop.cpp | 2 -- VolumeManager.cpp | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Devmapper.cpp b/Devmapper.cpp index d55d92d..00fb4b3 100644 --- a/Devmapper.cpp +++ b/Devmapper.cpp @@ -94,8 +94,6 @@ int Devmapper::destroyAll() { PLOG(WARNING) << "Failed to destroy dm device named " << device.name(); } } - } else { - LOG(DEBUG) << "Found unmanaged dm device named " << device.name(); } } return 0; diff --git a/Loop.cpp b/Loop.cpp index 87f105d..4c86788 100644 --- a/Loop.cpp +++ b/Loop.cpp @@ -163,8 +163,6 @@ int Loop::destroyAll() { if (ioctl(fd.get(), LOOP_CLR_FD, 0) < 0) { PLOG(WARNING) << "Failed to LOOP_CLR_FD " << path; } - } else { - LOG(DEBUG) << "Found unmanaged loop device at " << path << " named " << id; } } diff --git a/VolumeManager.cpp b/VolumeManager.cpp index 2697f67..d299593 100644 --- a/VolumeManager.cpp +++ b/VolumeManager.cpp @@ -239,7 +239,7 @@ void VolumeManager::handleBlockEvent(NetlinkEvent* evt) { break; } case NetlinkEvent::Action::kChange: { - LOG(DEBUG) << "Disk at " << major << ":" << minor << " changed"; + LOG(VERBOSE) << "Disk at " << major << ":" << minor << " changed"; handleDiskChanged(device); break; }