summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Scott Randolph <randolphs@google.com> 2017-04-03 14:05:49 -0700
committer Scott Randolph <randolphs@google.com> 2017-04-04 10:08:59 -0700
commit5a0c485ecb91c0ece910db8dba31c6f013207ede (patch)
tree22d2f4a8ee9e5259129a3b66fe66df526f86c7a6
parentc428826fdf6208da698fbdb1d49d0b51bfb924b6 (diff)
Use explicit .c_str() for hidl_string
hidl_string no longer will provide an implicit cast to const char* as it interfers with other expected behaviors of the class. It now emulated std::string in requiring a call to .c_str() to get the same behavior. Bug: 36532780 Test: Build the tree Change-Id: Icfa77d2d505d527f5c9484ea73d2e596ccd810af
-rw-r--r--cmds/dumpstate/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp
index cc4144abf1..f5dca473ed 100644
--- a/cmds/dumpstate/utils.cpp
+++ b/cmds/dumpstate/utils.cpp
@@ -836,7 +836,7 @@ std::set<int> get_interesting_hal_pids() {
continue;
}
- if (!should_dump_hal_interface(info.interfaceName)) {
+ if (!should_dump_hal_interface(info.interfaceName.c_str())) {
continue;
}