svn commit: r283577 - head/sbin/dumpfs

Andrey V. Elsukov ae at FreeBSD.org
Tue May 26 18:27:39 UTC 2015


Author: ae
Date: Tue May 26 18:27:38 2015
New Revision: 283577
URL: https://svnweb.freebsd.org/changeset/base/283577

Log:
  Print leading zeroes of UFS2 fs_id like we do for UFS1.
  
  PR:		156908
  MFC after:	1 week

Modified:
  head/sbin/dumpfs/dumpfs.c

Modified: head/sbin/dumpfs/dumpfs.c
==============================================================================
--- head/sbin/dumpfs/dumpfs.c	Tue May 26 17:44:31 2015	(r283576)
+++ head/sbin/dumpfs/dumpfs.c	Tue May 26 18:27:38 2015	(r283577)
@@ -165,7 +165,7 @@ dumpfs(const char *name)
 		fstime = afs.fs_time;
 		printf("magic\t%x (UFS2)\ttime\t%s",
 		    afs.fs_magic, ctime(&fstime));
-		printf("superblock location\t%jd\tid\t[ %x %x ]\n",
+		printf("superblock location\t%jd\tid\t[ %08x %08x ]\n",
 		    (intmax_t)afs.fs_sblockloc, afs.fs_id[0], afs.fs_id[1]);
 		printf("ncg\t%d\tsize\t%jd\tblocks\t%jd\n",
 		    afs.fs_ncg, (intmax_t)fssize, (intmax_t)afs.fs_dsize);


More information about the svn-src-all mailing list