update_engine: fix english
Fix the english for accuracy regarding DLC.
BUG=chromium:897882
TEST=None
Change-Id: I72ab9ecb7903bb5fb35597222cd7c8b1f4244cfc
Reviewed-on: https://chromium-review.googlesource.com/1351359
Commit-Ready: Xiaochu Liu <xiaochu@chromium.org>
Tested-by: Xiaochu Liu <xiaochu@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
diff --git a/boot_control_chromeos.cc b/boot_control_chromeos.cc
index 724dab0..40fc349 100644
--- a/boot_control_chromeos.cc
+++ b/boot_control_chromeos.cc
@@ -149,20 +149,21 @@
bool BootControlChromeOS::GetPartitionDevice(const string& partition_name,
unsigned int slot,
string* device) const {
- // Partition name prefixed with |kPartitionNamePrefixDlc| is a DLC.
+ // Partition name prefixed with |kPartitionNamePrefixDlc| is a DLC module.
if (base::StartsWith(partition_name,
kPartitionNamePrefixDlc,
base::CompareCase::SENSITIVE)) {
- // Extract DLC ID from partition_name (DLC ID is the string after
- // |kPartitionNamePrefixDlc| in partition_name).
- const auto dlc_id = partition_name.substr(strlen(kPartitionNamePrefixDlc));
- if (dlc_id.empty()) {
- LOG(ERROR) << " partition name does not contain dlc id:"
+ // Extract DLC module ID from partition_name (DLC module ID is the string
+ // after |kPartitionNamePrefixDlc| in partition_name).
+ const auto dlc_module_id =
+ partition_name.substr(strlen(kPartitionNamePrefixDlc));
+ if (dlc_module_id.empty()) {
+ LOG(ERROR) << " partition name does not contain DLC module ID:"
<< partition_name;
return false;
}
*device = base::FilePath(kDlcInstallRootDirectoryEncrypted)
- .Append(dlc_id)
+ .Append(dlc_module_id)
.Append(slot == 0 ? kPartitionNameDlcA : kPartitionNameDlcB)
.Append(kPartitionNameDlcImage)
.value();