[PATCH] fix printf format specifiers in xpeek

Christoph Hellwig <[email protected]> Sun, 14 Jul 2002 15:09:51 +0100
Newsgroups gmane.comp.file-systems.jfs.patches
Message-ID <[email protected]>
2002-07-14  Christoph Hellwig  <[email protected]>

	* xpeek/fsckcbbl.c (display_logsuper): Fix printf format specifiers.


Index: xpeek/fsckcbbl.c
===================================================================
RCS file: /usr/cvs/jfs/jfsutils/xpeek/fsckcbbl.c,v
retrieving revision 1.3
diff -u -r1.3 fsckcbbl.c
--- xpeek/fsckcbbl.c	26 Apr 2002 16:05:36 -0000	1.3
+++ xpeek/fsckcbbl.c	14 Jul 2002 14:06:17 -0000
@@ -395,18 +395,18 @@
     printf("[7] flag:\t\t\t0x%08x\n", lsp->flag );
     printf("[8] state:\t\t\t0x%08x\n", lsp->state );
     printf("[9] end:\t\t\t0x%x  (d %d)\n", lsp->end, lsp->end);
-    printf("[]  active[0]:\t0x%x (%d)\t active[4]:\t0x%x (%d)\n",
-		lsp->active[0], lsp->active[0],
-		lsp->active[4], lsp->active[4] );
-    printf("    active[1]:\t0x%x (%d)\t active[5]:\t0x%x (%d)\n",
-		lsp->active[1], lsp->active[1],
-		lsp->active[5], lsp->active[5] );
-    printf("    active[2]:\t0x%x (%d)\t active[6]:\t0x%x (%d)\n",
-		lsp->active[2], lsp->active[2],
-		lsp->active[6], lsp->active[6] );
-    printf("    active[3]:\t0x%x (%d)\t active[7]:\t0x%x (%d)\n",
-		lsp->active[3], lsp->active[3],
-		lsp->active[7], lsp->active[7] );
+    printf("[]  active[0]:\t%p (%ld)\t active[4]:\t%p (%ld)\n",
+		lsp->active[0], (unsigned long)lsp->active[0],
+		lsp->active[4], (unsigned long)lsp->active[4] );
+    printf("    active[1]:\t%p (%ld)\t active[5]:\t%p (%ld)\n",
+		lsp->active[1], (unsigned long)lsp->active[1],
+		lsp->active[5], (unsigned long)lsp->active[5] );
+    printf("    active[2]:\t%p (%ld)\t active[6]:\t%p (%ld)\n",
+		lsp->active[2], (unsigned long)lsp->active[2],
+		lsp->active[6], (unsigned long)lsp->active[6] );
+    printf("    active[3]:\t%p (%ld)\t active[7]:\t%p (%ld)\n",
+		lsp->active[3], (unsigned long)lsp->active[3],
+		lsp->active[7], (unsigned long)lsp->active[7] );
 
 retry:
     fputs("display_fsck_wsphdr: [m]odify or e[x]it: ", stdout);