diff options
author | Yifan Hong | 2018-08-07 19:44:10 -0500 |
---|---|---|
committer | Yifan Hong | 2018-08-08 12:07:39 -0500 |
commit | a1b112d010c403ccdddba10b1882054b3b48da8d (patch) | |
tree | 41fa70e46dcf16c4ea80374d382d5e59e91e30d9 /main.cpp | |
parent | 5c9ff706f0a8363bef1e205334892ace33855c6b (diff) | |
download | platform-system-libvintf-a1b112d010c403ccdddba10b1882054b3b48da8d.tar.gz platform-system-libvintf-a1b112d010c403ccdddba10b1882054b3b48da8d.tar.xz platform-system-libvintf-a1b112d010c403ccdddba10b1882054b3b48da8d.zip |
SerializeFlags: Remove legacy APIs
Remove legacy bitwise operators and boolean conversions
that are meant to be compatible with the old negative flags
usage. Also fix all such usages.
Bug: 110711640
Test: libvintf_test
Change-Id: Ic69a7066dd3ae320aeb0a1848eb7719f67da29d3
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -268,8 +268,7 @@ int main(int argc, char** argv) { | |||
268 | 268 | ||
269 | SerializeFlags flags = SerializeFlags::EVERYTHING; | 269 | SerializeFlags flags = SerializeFlags::EVERYTHING; |
270 | if (!options.verbose) { | 270 | if (!options.verbose) { |
271 | flags |= SerializeFlags::NO_HALS; | 271 | flags = flags.disableHals().disableKernel(); |
272 | flags |= SerializeFlags::NO_KERNEL; | ||
273 | } | 272 | } |
274 | std::cout << "======== Device HAL Manifest =========" << std::endl; | 273 | std::cout << "======== Device HAL Manifest =========" << std::endl; |
275 | if (vm != nullptr) std::cout << gHalManifestConverter(*vm, flags); | 274 | if (vm != nullptr) std::cout << gHalManifestConverter(*vm, flags); |