summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Wasilczyk <twasilczyk@google.com>2023-08-11 18:00:46 +0000
committerTomasz Wasilczyk <twasilczyk@google.com>2023-08-11 18:00:46 +0000
commit441ceef0d3d131c0c362214e3c9eb41752118482 (patch)
treedd3aa8e94e86149bdfaf0730101635b7c0d4fa2b
parent198d62a504598dd10ca4658f8ffe932ae49b8b74 (diff)
downloadcontexthub-441ceef0d3d131c0c362214e3c9eb41752118482.tar.gz
Use String8/16 c_str
Bug: 295394788 Test: make checkbuild Change-Id: I0acedeb1ec80e75f056792bb0a6a4eb4e957dc57
-rw-r--r--contexthubhal/NanohubHidlAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contexthubhal/NanohubHidlAdapter.cpp b/contexthubhal/NanohubHidlAdapter.cpp
index 9efca2ad..671d7812 100644
--- a/contexthubhal/NanohubHidlAdapter.cpp
+++ b/contexthubhal/NanohubHidlAdapter.cpp
@@ -579,7 +579,7 @@ Return<void> Contexthub::debug(const hidl_handle& hh_fd,
} else {
result.appendFormat("unknown debug options");
}
- write(fd, result.string(), result.size());
+ write(fd, result.c_str(), result.size());
return Void();
}