aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs
diff options
context:
space:
mode:
authorGavin Atkinson <gavin@FreeBSD.org>2010-01-06 14:01:28 +0000
committerGavin Atkinson <gavin@FreeBSD.org>2010-01-06 14:01:28 +0000
commit8f70111670f85fc310b7f14dabcb38443193f0d9 (patch)
tree13d9f8e3c1dc051c677ab841c1b5d24e0d9be8a5 /sbin/dumpfs
parent0c8fd0c8aceb9eefe954ce864679cf6c386d7b1a (diff)
downloadsrc-8f70111670f85fc310b7f14dabcb38443193f0d9.tar.gz
src-8f70111670f85fc310b7f14dabcb38443193f0d9.zip
Print leading zeros in the UFS2 FSID.
PR: bin/142155 Submitted by: Efstratios Karatzas gpf.kira gmail.com Approved by: ed (mentor) MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=201647
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 b7f6d39d4818..e4b599504012 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -160,7 +160,7 @@ dumpfs(const char *name)
fstime = afs.fs_old_time;
printf("magic\t%x (UFS1)\ttime\t%s",
afs.fs_magic, ctime(&fstime));
- printf("id\t[ %x %x ]\n", afs.fs_id[0], afs.fs_id[1]);
+ printf("id\t[ %08x %08x ]\n", 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);
break;