vold2: update some debugging
Signed-off-by: San Mehat <san@google.com>
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index 65e2989..c8b4505 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -357,6 +357,7 @@
snprintf(mountPoint, sizeof(mountPoint), "/asec/%s", id);
if (isMountpointMounted(mountPoint)) {
+ LOGD("Unmounting container before destroy");
if (unmountAsec(id)) {
LOGE("Failed to unmount asec %s for destroy (%s)", id, strerror(errno));
return -1;
@@ -364,7 +365,7 @@
}
if (unlink(asecFileName)) {
- LOGE("Failed to unlink asec %s (%s)", id, strerror(errno));
+ LOGE("Failed to unlink asec '%s' (%s)", asecFileName, strerror(errno));
return -1;
}