Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jul 2011 17:43:23 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r224025 - head/sbin/dumpfs
Message-ID:  <201107141743.p6EHhNeO039213@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107141743.p6EHhNeO039213>