summaryrefslogtreecommitdiff
path: root/bootctl
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2017-01-04 13:00:07 -0800
committerSteven Moreland <smoreland@google.com>2017-01-04 13:00:07 -0800
commit6b8d033d22c93516d0edafaf80cf725e4f1cf324 (patch)
treed93d212f124f559cfeaaae749a1ba7ba2a942d95 /bootctl
parentb4cdbd535cb947a67d316742f8144c1d4ec93358 (diff)
downloadextras-6b8d033d22c93516d0edafaf80cf725e4f1cf324.tar.gz
boot control: remove getInterfaceVersion
getInterfaceVersion doesn't provide any information and is being removed. I've replaced the call with interfaceChain here so that a better description can be obtained. Bug: 34041669 Test: compiles Change-Id: I00e5154e92edf2dd17b3e899b094589642ba3b3e
Diffstat (limited to 'bootctl')
-rw-r--r--bootctl/bootctl.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/bootctl/bootctl.cpp b/bootctl/bootctl.cpp
index ae808137..5f8b979b 100644
--- a/bootctl/bootctl.cpp
+++ b/bootctl/bootctl.cpp
@@ -52,10 +52,14 @@ static void usage(FILE* where, int /* argc */, char* argv[])
}
static int do_hal_info(const sp<IBootControl> module) {
- fprintf(stdout,
- "HAL module version: %u.%u\n",
- module->getInterfaceVersion().get_major(),
- module->getInterfaceVersion().get_minor());
+ module->interfaceChain([&](const auto& chain) {
+ if (chain.size() == 0) {
+ return; // error, can't dump info
+ }
+ fprintf(stdout,
+ "HAL Version: %s\n",
+ chain[0].c_str());
+ });
return EX_OK;
}