diff options
author | Yifan Hong <elsk@google.com> | 2018-08-23 17:12:06 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2018-08-28 12:29:14 -0700 |
commit | 6c47400f3c5cccdf0a188d1d50bad52554c891b5 (patch) | |
tree | 3e84347fd8cac1e8ce340f2dd52992450ed7a5bb /fs_mgr/libdm | |
parent | abf8ff7e81f8f45883cc55a7eeff56735c836be4 (diff) | |
download | system_core-6c47400f3c5cccdf0a188d1d50bad52554c891b5.tar.gz system_core-6c47400f3c5cccdf0a188d1d50bad52554c891b5.tar.bz2 system_core-6c47400f3c5cccdf0a188d1d50bad52554c891b5.zip |
libdm: GetDmDevicePathByName log warning
Decrease severity so that GetDmDevicePathByName can be used
as an API to check if |name| is mounted in device mapper.
Test: mount devices during OTA
Bug: 110717529
Change-Id: I6b28b6f8efe48f28819004490a037aba47b41ee1
Diffstat (limited to 'fs_mgr/libdm')
-rw-r--r-- | fs_mgr/libdm/dm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs_mgr/libdm/dm.cpp b/fs_mgr/libdm/dm.cpp index 2b526f65a..c4b57c778 100644 --- a/fs_mgr/libdm/dm.cpp +++ b/fs_mgr/libdm/dm.cpp @@ -278,7 +278,7 @@ bool DeviceMapper::GetDmDevicePathByName(const std::string& name, std::string* p struct dm_ioctl io; InitIo(&io, name); if (ioctl(fd_, DM_DEV_STATUS, &io) < 0) { - PLOG(ERROR) << "DM_DEV_STATUS failed for " << name; + PLOG(WARNING) << "DM_DEV_STATUS failed for " << name; return false; } |