slicer: Fix output logging

std::stringstream(std::string& x) initializes the buffer with x, but
does not update the output position. The recent change that added this
yielded error messages with overwritten content.

Flush the log buffer since logging is to stdout by default and
buffered so log messages can be swallowed if abort is called.

Bug: N/A
Test: dexter_tests.py & slicer_tests & manual
Change-Id: I0587115f6eff495c54f5073bbb8723b587db3242
10 files changed
tree: 64ce8e509b8005b47e2e18ffafb5eaa3bddf056d
  1. dexter/
  2. slicer/
  3. testdata/
  4. .clang-format
  5. Android.bp
  6. OWNERS
  7. README.md
  8. TEST_MAPPING
README.md

This is the home of the .dex manipulation library (slicer) and command line tool (dexter).

Both the command line tool and the library can be built for host and device targets.

To build dexter:

$ m dexter

To test dexter:

# in tools/dexter (and assuming a Linux host)
$ python dexter/dexter_tests.py -cmd ../../out/host/linux-x86/bin/dexter -root testdata