summaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2011-07-14 17:43:23 +0000
committerdelphij <delphij@FreeBSD.org>2011-07-14 17:43:23 +0000
commitfd66b2cc6488459c63d9bee9f89b972b3eec5cfc (patch)
tree5fc494697aaaec3f8562a19184142a3eac8a7140 /sbin/dumpfs
parent647eb1d22285fd13680ac82e18848cc308845c80 (diff)
downloadFreeBSD-src-fd66b2cc6488459c63d9bee9f89b972b3eec5cfc.zip
FreeBSD-src-fd66b2cc6488459c63d9bee9f89b972b3eec5cfc.tar.gz
Use _PATH_DEV and make the format more consistent with GEOM_LABEL.
Submitted by: ivoras
Diffstat (limited to 'sbin/dumpfs')
-rw-r--r--sbin/dumpfs/dumpfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index 0ed9f59..c54fa2b 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -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;
}
OpenPOWER on IntegriCloud