summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-02-23 21:36:32 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-02-23 21:36:33 +0000
commit7e5199f5dd8c3b74c4e7c5f22b2a24f4f6924bcf (patch)
treed5748d6c44744cc8ecf4cc560918bf02f181706e
parentf286f3d5ce6441ee14f9a7cc5122ab04394abaee (diff)
parent2e3024fca9693ab1655fa0863b4ba885d10e2094 (diff)
downloadextras-7e5199f5dd8c3b74c4e7c5f22b2a24f4f6924bcf.tar.gz
Merge "Use interfaceDescriptor instead of interfaceChain"
-rw-r--r--bootctl/bootctl.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/bootctl/bootctl.cpp b/bootctl/bootctl.cpp
index 6dda28fb..d80bb158 100644
--- a/bootctl/bootctl.cpp
+++ b/bootctl/bootctl.cpp
@@ -52,13 +52,10 @@ static void usage(FILE* where, int /* argc */, char* argv[])
}
static int do_hal_info(const sp<IBootControl> module) {
- module->interfaceChain([&](const auto& chain) {
- if (chain.size() == 0) {
- return; // error, can't dump info
- }
+ module->interfaceDescriptor([&](const auto& descriptor) {
fprintf(stdout,
"HAL Version: %s\n",
- chain[0].c_str());
+ descriptor.c_str());
});
return EX_OK;
}