summaryrefslogtreecommitdiffstats
path: root/tests/bar
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2016-11-17 15:12:18 +0100
committerMartijn Coenen <maco@google.com>2016-11-17 15:29:36 +0100
commit65c86c08a141a89d29ed3c7df4f33ca9c6b7e554 (patch)
tree9f01920bb41887784a9978d8d5eb499f7ab5d107 /tests/bar
parent511cc493e33959b3b5b9e11692e946a54e139de8 (diff)
downloadplatform_hardware_interfaces-65c86c08a141a89d29ed3c7df4f33ca9c6b7e554.tar.gz
platform_hardware_interfaces-65c86c08a141a89d29ed3c7df4f33ca9c6b7e554.tar.bz2
platform_hardware_interfaces-65c86c08a141a89d29ed3c7df4f33ca9c6b7e554.zip
Cast hidl_pointer<T> to void*.
hidl_pointer<T> can only allow one implicit conversion operator, and native_handle_t* is the one that makes most sense. Hence, this requires an explicit cast. Bug: 32089785 Test: builds Change-Id: Ie952ee2e4f0c20fa33f793403d51f3d550257310
Diffstat (limited to 'tests/bar')
-rw-r--r--tests/bar/1.0/default/Bar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bar/1.0/default/Bar.cpp b/tests/bar/1.0/default/Bar.cpp
index 4ff9e6bdf2..2158cd8722 100644
--- a/tests/bar/1.0/default/Bar.cpp
+++ b/tests/bar/1.0/default/Bar.cpp
@@ -154,7 +154,7 @@ Return<void> Bar::thisIsNew() {
}
Return<void> Bar::expectNullHandle(const native_handle_t* h, const Abc& xyz, expectNullHandle_cb _hidl_cb) {
- ALOGI("SERVER(Bar) h = %p, xyz.z = %p", h, xyz.z);
+ ALOGI("SERVER(Bar) h = %p, xyz.z = %p", h, static_cast<void*>(xyz.z));
_hidl_cb(h == nullptr, xyz.z == nullptr);
return Void();
}