]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/lib/log/log.c
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / lib / log / log.c
index 9f4546ce7e9fdfa2aededf639c0b6f3b968a25e2..654dea3a74e2f44457396daa36fcc133531dfafc 100644 (file)
@@ -174,6 +174,11 @@ fdump(FILE *fp, const char *label, const uint8_t *buf, size_t len)
                buf16[idx % 16] = isprint(buf[idx]) ? buf[idx] : '.';
        }
        for (; idx % 16 != 0; idx++) {
+               if (idx == 8) {
+                       total += snprintf(tmpbuf + total, sizeof tmpbuf - total,
+                                         " ");
+               }
+
                total += snprintf(tmpbuf + total, sizeof tmpbuf - total, "   ");
                buf16[idx % 16] = ' ';
        }
@@ -183,7 +188,7 @@ fdump(FILE *fp, const char *label, const uint8_t *buf, size_t len)
 }
 
 void
-spdk_trace_dump(FILE *fp, const char *label, const void *buf, size_t len)
+spdk_log_dump(FILE *fp, const char *label, const void *buf, size_t len)
 {
        fdump(fp, label, buf, len);
 }