summaryrefslogtreecommitdiff
path: root/boot_control_chromeos.cc
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@chromium.org>2019-01-14 16:29:47 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-16 01:46:42 -0800
commit7cc8bb085b6f04cbeca7cb77ddb6798fa9725e2f (patch)
tree55b88a1bafb293b4210bf2de59c8892c0985f8b5 /boot_control_chromeos.cc
parent4b71743b20d0ca155df3414a863a48cb898622c9 (diff)
update_engine: Run clang-format on ./ (root directory)
BUG=none TEST=unittest Change-Id: Ibd075dc7ea9a18e798f612e35725f1c83c112809 Reviewed-on: https://chromium-review.googlesource.com/1409708 Commit-Ready: Amin Hassani <ahassani@chromium.org> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Sen Jiang <senj@chromium.org>
Diffstat (limited to 'boot_control_chromeos.cc')
-rw-r--r--boot_control_chromeos.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/boot_control_chromeos.cc b/boot_control_chromeos.cc
index 3dee6604..ccba316c 100644
--- a/boot_control_chromeos.cc
+++ b/boot_control_chromeos.cc
@@ -124,9 +124,8 @@ bool BootControlChromeOS::Init() {
}
if (current_slot_ >= num_slots_) {
LOG(ERROR) << "Couldn't find the slot number corresponding to the "
- "partition " << boot_device
- << ", number of slots: " << num_slots_
- << ". This device is not updateable.";
+ << "partition " << boot_device << ", number of slots: "
+ << num_slots_ << ". This device is not updateable.";
num_slots_ = 1;
current_slot_ = BootControlInterface::kInvalidSlot;
return false;
@@ -303,8 +302,7 @@ bool BootControlChromeOS::IsRemovableDevice(const string& device) {
}
int BootControlChromeOS::GetPartitionNumber(
- const string partition_name,
- BootControlInterface::Slot slot) const {
+ const string partition_name, BootControlInterface::Slot slot) const {
if (slot >= num_slots_) {
LOG(ERROR) << "Invalid slot number: " << slot << ", we only have "
<< num_slots_ << " slot(s)";