svn commit: r224025 - head/sbin/dumpfs
Xin LI
delphij at FreeBSD.org
Thu Jul 14 17:43:23 UTC 2011
Author: delphij
Date: Thu Jul 14 17:43:23 2011
New Revision: 224025
URL: http://svn.freebsd.org/changeset/base/224025
Log:
Use _PATH_DEV and make the format more consistent with GEOM_LABEL.
Submitted by: ivoras
Modified:
head/sbin/dumpfs/dumpfs.c
Modified: head/sbin/dumpfs/dumpfs.c
==============================================================================
--- head/sbin/dumpfs/dumpfs.c Thu Jul 14 17:43:18 2011 (r224024)
+++ head/sbin/dumpfs/dumpfs.c Thu Jul 14 17:43:23 2011 (r224025)
@@ -68,6 +68,7 @@ static const char rcsid[] =
#include <fcntl.h>
#include <fstab.h>
#include <libufs.h>
+#include <paths.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -146,7 +147,7 @@ int
dumpfsid(void)
{
- printf("/dev/ufsid/%x%x\n", afs.fs_id[0], afs.fs_id[1]);
+ printf("%sufsid/%08x%08x\n", _PATH_DEV, afs.fs_id[0], afs.fs_id[1]);
return 0;
}
More information about the svn-src-head
mailing list