From edb56556620f3abfe5b2576798a81fa0906f6ed9 Mon Sep 17 00:00:00 2001 From: Chris Kuiper Date: Wed, 14 Dec 2022 17:17:36 -0800 Subject: [PATCH] hidl: sensors: 2.1: HalProxy: Forward 'lshal debug' options. Bug: 262655635 Test: Temporarily added logs to verify option arguments are correctly forwarded. Change-Id: Idef9b3371c332b8578cbfa88ba7d4bf4c68155e3 --- hidl/sensors/2.1/HalProxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hidl/sensors/2.1/HalProxy.cpp b/hidl/sensors/2.1/HalProxy.cpp index 63b64c2..b8a92ad 100644 --- a/hidl/sensors/2.1/HalProxy.cpp +++ b/hidl/sensors/2.1/HalProxy.cpp @@ -370,7 +370,7 @@ Return HalProxy::configDirectReport(int32_t sensorHandle, int32_t channelH return Return(); } -Return HalProxy::debug(const hidl_handle& fd, const hidl_vec& /*args*/) { +Return HalProxy::debug(const hidl_handle& fd, const hidl_vec& args) { if (fd.getNativeHandle() == nullptr || fd->numFds < 1) { ALOGE("%s: missing fd for writing", __FUNCTION__); return Void(); @@ -404,7 +404,7 @@ Return HalProxy::debug(const hidl_handle& fd, const hidl_vec& stream << " Name: " << subHal->getName() << std::endl; stream << " Debug dump: " << std::endl; android::base::WriteStringToFd(stream.str(), writeFd); - subHal->debug(fd, {}); + subHal->debug(fd, args); stream.str(""); stream << std::endl; }