diff options
Diffstat (limited to 'src/gtest-printers.cc')
-rw-r--r-- | src/gtest-printers.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gtest-printers.cc b/src/gtest-printers.cc index 1d97b53..07a0d85 100644 --- a/src/gtest-printers.cc +++ b/src/gtest-printers.cc @@ -72,9 +72,10 @@ void PrintByteSegmentInObjectTo(const unsigned char* obj_bytes, size_t start, if (i != 0) { // Organizes the bytes into groups of 2 for easy parsing by // human. - if ((j % 2) == 0) { - *os << " "; - } + if ((j % 2) == 0) + *os << ' '; + else + *os << '-'; } snprintf(text, sizeof(text), "%02X", obj_bytes[j]); *os << text; |