]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: fix * zero placement
authorSage Weil <sage@redhat.com>
Tue, 27 Sep 2016 18:18:41 +0000 (14:18 -0400)
committerSage Weil <sage@redhat.com>
Sun, 16 Oct 2016 14:32:51 +0000 (10:32 -0400)
Back in 46522cf0d27ad7d236f61bf132c915210754a0f4 we broke the newline
placement for the * lines.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/buffer.cc

index 98ce67c7e1e6ea6988dc1152eb085ad2b6126720..74a84a3b8cf772fa2095c40a4eb465f48b72762b 100644 (file)
@@ -2432,7 +2432,7 @@ void buffer::list::hexdump(std::ostream &out, bool trailing_newline) const
       if (row_is_zeros) {
        if (was_zeros) {
          if (!did_star) {
-           out << "*\n";
+           out << "\n*";
            did_star = true;
          }
          continue;