From owner-svn-src-head@freebsd.org Mon Jul 2 09:14:01 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A9CCFEF3D6; Mon, 2 Jul 2018 09:14:01 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 04F437CD64; Mon, 2 Jul 2018 09:14:01 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DA50A38A3; Mon, 2 Jul 2018 09:14:00 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w629E09v092349; Mon, 2 Jul 2018 09:14:00 GMT (envelope-from tuexen@FreeBSD.org) Received: (from tuexen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w629E0hG092348; Mon, 2 Jul 2018 09:14:00 GMT (envelope-from tuexen@FreeBSD.org) Message-Id: <201807020914.w629E0hG092348@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tuexen set sender to tuexen@FreeBSD.org using -f From: Michael Tuexen Date: Mon, 2 Jul 2018 09:14:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335860 - head/sbin/kldstat X-SVN-Group: head X-SVN-Commit-Author: tuexen X-SVN-Commit-Paths: head/sbin/kldstat X-SVN-Commit-Revision: 335860 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2018 09:14:01 -0000 Author: tuexen Date: Mon Jul 2 09:14:00 2018 New Revision: 335860 URL: https://svnweb.freebsd.org/changeset/base/335860 Log: Allow three digits of module id without breaking table alignment. Modified: head/sbin/kldstat/kldstat.c Modified: head/sbin/kldstat/kldstat.c ============================================================================== --- head/sbin/kldstat/kldstat.c Mon Jul 2 09:11:30 2018 (r335859) +++ head/sbin/kldstat/kldstat.c Mon Jul 2 09:14:00 2018 (r335860) @@ -55,10 +55,10 @@ printmod(int modid) warn("can't stat module id %d", modid); else if (showdata) { - printf("\t\t%2d %s (%d, %u, 0x%lx)\n", stat.id, stat.name, + printf("\t\t%3d %s (%d, %u, 0x%lx)\n", stat.id, stat.name, stat.data.intval, stat.data.uintval, stat.data.ulongval); } else { - printf("\t\t%2d %s\n", stat.id, stat.name); + printf("\t\t%3d %s\n", stat.id, stat.name); } } @@ -90,7 +90,7 @@ printfile(int fileid, int verbose, int humanized) if (verbose) { printf(" (%s)\n", stat.pathname); printf("\tContains modules:\n"); - printf("\t\tId Name\n"); + printf("\t\t Id Name\n"); for (modid = kldfirstmod(fileid); modid > 0; modid = modfnext(modid)) printmod(modid);