OSDN Git Service

Follow vdc naming convention: earlyBootEnded
authorPaul Crowley <paulcrowley@google.com>
Tue, 1 Dec 2020 22:36:06 +0000 (14:36 -0800)
committerPaul Crowley <paulcrowley@google.com>
Tue, 1 Dec 2020 22:36:06 +0000 (14:36 -0800)
vdc commands use camelCase, not kebab-case.

Test: EarlyBootKeyTest.CannotCreateEarlyBootKeys
Change-Id: I7be4d3008a731829e5d5e025216cb2ade238a530

vdc.cpp

diff --git a/vdc.cpp b/vdc.cpp
index b6bb5ed..1aaeb5a 100644 (file)
--- a/vdc.cpp
+++ b/vdc.cpp
@@ -152,7 +152,7 @@ int main(int argc, char** argv) {
         checkStatus(args, vold->abortChanges(args[2], retry != 0));
     } else if (args[0] == "checkpoint" && args[1] == "resetCheckpoint") {
         checkStatus(args, vold->resetCheckpoint());
-    } else if (args[0] == "keymaster" && args[1] == "early-boot-ended") {
+    } else if (args[0] == "keymaster" && args[1] == "earlyBootEnded") {
         checkStatus(args, vold->earlyBootEnded());
     } else {
         LOG(ERROR) << "Raw commands are no longer supported";