diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-02-23 21:36:32 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-02-23 21:36:33 +0000 |
commit | 7e5199f5dd8c3b74c4e7c5f22b2a24f4f6924bcf (patch) | |
tree | d5748d6c44744cc8ecf4cc560918bf02f181706e | |
parent | f286f3d5ce6441ee14f9a7cc5122ab04394abaee (diff) | |
parent | 2e3024fca9693ab1655fa0863b4ba885d10e2094 (diff) | |
download | extras-7e5199f5dd8c3b74c4e7c5f22b2a24f4f6924bcf.tar.gz |
Merge "Use interfaceDescriptor instead of interfaceChain"
-rw-r--r-- | bootctl/bootctl.cpp | 7 |
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; } |