From owner-svn-src-all@FreeBSD.ORG Mon Dec 22 19:52:22 2008 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 057601065676; Mon, 22 Dec 2008 19:52:22 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E79E78FC0C; Mon, 22 Dec 2008 19:52:21 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBMJqLM8069391; Mon, 22 Dec 2008 19:52:21 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBMJqLQe069390; Mon, 22 Dec 2008 19:52:21 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200812221952.mBMJqLQe069390@svn.freebsd.org> From: Andrew Thompson Date: Mon, 22 Dec 2008 19:52:21 +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: r186398 - head/sbin/kldstat 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: Mon, 22 Dec 2008 19:52:22 -0000 Author: thompsa Date: Mon Dec 22 19:52:21 2008 New Revision: 186398 URL: http://svn.freebsd.org/changeset/base/186398 Log: Only show the pathname in verbose output as intended in the last commit (r172862). Modified: head/sbin/kldstat/kldstat.c Modified: head/sbin/kldstat/kldstat.c ============================================================================== --- head/sbin/kldstat/kldstat.c Mon Dec 22 17:32:52 2008 (r186397) +++ head/sbin/kldstat/kldstat.c Mon Dec 22 19:52:21 2008 (r186398) @@ -60,17 +60,19 @@ static void printfile(int fileid, int ve if (kldstat(fileid, &stat) < 0) warn("can't stat file id %d", fileid); else - printf("%2d %4d %p %-8jx %s (%s)\n", + printf("%2d %4d %p %-8jx %s", stat.id, stat.refs, stat.address, (uintmax_t)stat.size, - stat.name, stat.pathname); + stat.name); if (verbose) { + printf(" (%s)\n", stat.pathname); printf("\tContains modules:\n"); printf("\t\tId Name\n"); for (modid = kldfirstmod(fileid); modid > 0; modid = modfnext(modid)) printmod(modid); - } + } else + printf("\n"); } static void