summaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2015-05-26 18:27:38 +0000
committerae <ae@FreeBSD.org>2015-05-26 18:27:38 +0000
commitd8fcba70ad87ea703adbea485e06c5ce32709bfd (patch)
tree01b027480bb98a9fad66adbc01abca49a1c69b07 /sbin/dumpfs
parentf54a2f297a01d34a0906bc40d0b050913ac1b1c7 (diff)
downloadFreeBSD-src-d8fcba70ad87ea703adbea485e06c5ce32709bfd.zip
FreeBSD-src-d8fcba70ad87ea703adbea485e06c5ce32709bfd.tar.gz
Print leading zeroes of UFS2 fs_id like we do for UFS1.
PR: 156908 MFC after: 1 week
Diffstat (limited to 'sbin/dumpfs')
-rw-r--r--sbin/dumpfs/dumpfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index baf3d99..ce69ba1 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -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);
OpenPOWER on IntegriCloud