From owner-freebsd-current@FreeBSD.ORG Fri Sep 17 17:37:59 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F16ED16A4CE for ; Fri, 17 Sep 2004 17:37:59 +0000 (GMT) Received: from web14824.mail.yahoo.com (web14824.mail.yahoo.com [216.136.225.195]) by mx1.FreeBSD.org (Postfix) with SMTP id 999F043D54 for ; Fri, 17 Sep 2004 17:37:59 +0000 (GMT) (envelope-from rosti_bsd@yahoo.com) Message-ID: <20040917173759.92527.qmail@web14824.mail.yahoo.com> Received: from [212.143.154.227] by web14824.mail.yahoo.com via HTTP; Fri, 17 Sep 2004 10:37:59 PDT Date: Fri, 17 Sep 2004 10:37:59 -0700 (PDT) From: Rostislav Krasny To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: patch: makes an output of 'kldstat -v' looks a little better X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 17:38:00 -0000 Hello. Would someone like commit following patch? It makes an output of 'kldstat -v' looks a little better with module IDs bigger than 99. --- /usr/src/sbin/kldstat/kldstat.c Sun May 30 13:10:41 2004 +++ kldstat.c Fri Sep 17 20:08:33 2004 @@ -48,7 +48,7 @@ if (modstat(modid, &stat) < 0) warn("can't stat module id %d", modid); else - printf("\t\t%2d %s\n", stat.id, stat.name); + printf("\t\t%3d %s\n", stat.id, stat.name); } static void printfile(int fileid, int verbose) @@ -66,7 +66,7 @@ if (verbose) { 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); _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com