]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
logprint: cleanup xlog_print_rec_xhead
authorChristoph Hellwig <hch@lst.de>
Fri, 28 Nov 2025 06:29:57 +0000 (07:29 +0100)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 3 Dec 2025 10:48:04 +0000 (11:48 +0100)
Re-indent and drop typedefs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
logprint/log_misc.c

index 459eadae822477bd5e774f8f9320c0286ceda120..1a1d9cde7202d01d53d20825467f524f2eb8bf83 100644 (file)
@@ -1248,22 +1248,24 @@ xlog_print_rec_head(
 }
 
 static void
-xlog_print_rec_xhead(xlog_rec_ext_header_t *head, int coverage)
+xlog_print_rec_xhead(
+       struct xlog_rec_ext_header      *head,
+       int                             coverage)
 {
-    int i;
+       int                             i;
 
-    print_xlog_xhdr_line();
-    printf(_("extended-header: cycle: %d\n"), be32_to_cpu(head->xh_cycle));
+       print_xlog_xhdr_line();
+       printf(_("extended-header: cycle: %d\n"),
+               be32_to_cpu(head->xh_cycle));
 
-    if (print_overwrite) {
-       printf(_("cycle num overwrites: "));
-       for (i = 0; i < coverage; i++)
-           printf("%d - 0x%x  ",
-                   i,
-                   be32_to_cpu(head->xh_cycle_data[i]));
-       printf("\n");
-    }
-}      /* xlog_print_rec_xhead */
+       if (print_overwrite) {
+               printf(_("cycle num overwrites: "));
+               for (i = 0; i < coverage; i++)
+                       printf("%d - 0x%x  ",
+                               i, be32_to_cpu(head->xh_cycle_data[i]));
+               printf("\n");
+       }
+}
 
 static void
 print_xlog_bad_zeroed(xfs_daddr_t blkno)