diff options
| author | 2022-09-30 01:02:34 +0000 | |
|---|---|---|
| committer | 2022-09-30 01:02:34 +0000 | |
| commit | e8dba84365e5328a7ae6f41605e26d18fa28c24c (patch) | |
| tree | 83301a94d18b76865a15926ff1a9d1cf5acf26d6 /libs/binder/TextOutput.cpp | |
| parent | 0fda0b412a34cc7c82593a2fb90feac10b1b03ea (diff) | |
| parent | 250b142b9138c4e011e5faee337f4882cd6885f1 (diff) | |
Merge "libbinder : Use logging from liblog" am: 58864fd37f am: 424b87710b am: 57ae1ca8d4 am: 4fc9273332 am: 250b142b91
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2235623
Change-Id: Id7e29a305e1f6dfe7082675ccf3338a2a42ff181
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/binder/TextOutput.cpp')
| -rw-r--r-- | libs/binder/TextOutput.cpp | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/libs/binder/TextOutput.cpp b/libs/binder/TextOutput.cpp index a0ade50efb..5dd1f902f8 100644 --- a/libs/binder/TextOutput.cpp +++ b/libs/binder/TextOutput.cpp @@ -39,11 +39,10 @@ TextOutput::~TextOutput() {  static void textOutputPrinter(void* cookie, const char* txt)  { -    ((TextOutput*)cookie)->print(txt, strlen(txt)); +    ((std::ostream*)cookie)->write(txt, strlen(txt));  } -TextOutput& operator<<(TextOutput& to, const TypeCode& val) -{ +std::ostream& operator<<(std::ostream& to, const TypeCode& val) {      printTypeCode(val.typeCode(), textOutputPrinter, (void*)&to);      return to;  } @@ -61,8 +60,7 @@ HexDump::HexDump(const void *buf, size_t size, size_t bytesPerLine)      else mAlignment = 1;  } -TextOutput& operator<<(TextOutput& to, const HexDump& val) -{ +std::ostream& operator<<(std::ostream& to, const HexDump& val) {      printHexData(0, val.buffer(), val.size(), val.bytesPerLine(),          val.singleLineCutoff(), val.alignment(), val.carrayStyle(),          textOutputPrinter, (void*)&to); |