From owner-svn-src-all@FreeBSD.ORG Thu Jul 14 17:43:23 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C22C6106564A; Thu, 14 Jul 2011 17:43:23 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B26798FC15; Thu, 14 Jul 2011 17:43:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p6EHhN0p039215; Thu, 14 Jul 2011 17:43:23 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p6EHhNeO039213; Thu, 14 Jul 2011 17:43:23 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201107141743.p6EHhNeO039213@svn.freebsd.org> From: Xin LI Date: Thu, 14 Jul 2011 17:43:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r224025 - head/sbin/dumpfs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2011 17:43:23 -0000 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 #include #include +#include #include #include #include @@ -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; }