summaryrefslogtreecommitdiffstats
path: root/fastboot/device/fastboot_device.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2018-08-29 10:44:33 -0700
committerMark Salyzyn <salyzyn@google.com>2018-10-18 14:26:27 +0000
commit8e7e9cb395dd981b7af96f0829b4ccb65d94438f (patch)
tree88be1a4df59d0679e22fce6f90331ec9c03f7493 /fastboot/device/fastboot_device.cpp
parentce27a5bc0fa037187273b1e94de6cd487f8d15be (diff)
downloadsystem_core-8e7e9cb395dd981b7af96f0829b4ccb65d94438f.tar.gz
system_core-8e7e9cb395dd981b7af96f0829b4ccb65d94438f.tar.bz2
system_core-8e7e9cb395dd981b7af96f0829b4ccb65d94438f.zip
fastboot: use constants.h values
Cleanup to utilize all the manifest values in constants.h. If the cli command _and_ the protocol name match, use a common source of convenient truth. This should set a pattern for future additional commands. When the command and the protocol differ, we want to introduce resistance as it results in confusion and maintenance issues. Test: compile Change-Id: Idad413c63cbbfcb6e851856105a5d5a9ef53ef29
Diffstat (limited to 'fastboot/device/fastboot_device.cpp')
-rw-r--r--fastboot/device/fastboot_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/device/fastboot_device.cpp b/fastboot/device/fastboot_device.cpp
index 6cb48928d..7be721a67 100644
--- a/fastboot/device/fastboot_device.cpp
+++ b/fastboot/device/fastboot_device.cpp
@@ -137,7 +137,7 @@ void FastbootDevice::ExecuteCommands() {
std::string cmd_name;
if (android::base::StartsWith(command, "oem ")) {
args = {command};
- cmd_name = "oem";
+ cmd_name = FB_CMD_OEM;
} else {
args = android::base::Split(command, ":");
cmd_name = args[0];