summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Wasilczyk <twasilczyk@google.com>2023-08-17 04:32:19 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-08-17 04:32:19 +0000
commit9e28b86ecc38c70a6c32d720e3319be0147f19f1 (patch)
treedd3aa8e94e86149bdfaf0730101635b7c0d4fa2b
parent5acdcc8a48fa60e1dda80ed7b044a229bbf7e0c1 (diff)
parentbec4a9c33f601c2d2baea7ce90d919390328b25a (diff)
downloadcontexthub-9e28b86ecc38c70a6c32d720e3319be0147f19f1.tar.gz
Use String8/16 c_str am: 441ceef0d3 am: ca94928e5e am: 14d34dd8ce am: 77cc3e43f2 am: bec4a9c33f
Original change: https://android-review.googlesource.com/c/device/google/contexthub/+/2705756 Change-Id: I82e4c44bbc5156aed7b6f20798b3fdeb1a474afa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-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();
}