[HWASan] Use less Printf() calls in register dump.
authorMitch Phillips <mitchphillips@outlook.com>
Thu, 14 Mar 2019 17:05:53 +0000 (17:05 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Thu, 14 Mar 2019 17:05:53 +0000 (17:05 +0000)
commit621de86907d5126e2597b720cbcc09ccffcbaaa0
tree63101d8e193c7c17252aded4b2fc51658139a982
parent8dd9b54d9b8dab9879d5730902a1077562f679e8
[HWASan] Use less Printf() calls in register dump.

Summary:
Explicitly print 4 registers/line in each iteration during register
dump. Reduces logcat spam as we get a single logcat message per call to
Printf(), even if the output isn't newline-terminated. This brings the
output format in logcat closer to that of the normal textual dump.

Reviewers: eugenis, pcc

Reviewed By: pcc

Subscribers: kubamracek, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D59320

llvm-svn: 356166
compiler-rt/lib/hwasan/hwasan_report.cpp