Use String8/16 c_str am: 441ceef0d3

Original change: https://android-review.googlesource.com/c/device/google/contexthub/+/2705756

Change-Id: Ic0d225fb59269e0c8af5d66d77c81aebcfe3d3cb
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/contexthubhal/NanohubHidlAdapter.cpp b/contexthubhal/NanohubHidlAdapter.cpp
index 9efca2a..671d781 100644
--- a/contexthubhal/NanohubHidlAdapter.cpp
+++ b/contexthubhal/NanohubHidlAdapter.cpp
@@ -579,7 +579,7 @@
     } else {
         result.appendFormat("unknown debug options");
     }
-    write(fd, result.string(), result.size());
+    write(fd, result.c_str(), result.size());
 
     return Void();
 }