NetBSD Problem Report #43014

From www@NetBSD.org  Fri Mar 19 16:05:43 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id E233263B86C
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 19 Mar 2010 16:05:42 +0000 (UTC)
Message-Id: <20100319160542.B1FBD63B11D@www.NetBSD.org>
Date: Fri, 19 Mar 2010 16:05:42 +0000 (UTC)
From: pooka@iki.fi
Reply-To: pooka@iki.fi
To: gnats-bugs@NetBSD.org
Subject: modstat could be more expandable
X-Send-Pr-Version: www-1.0

>Number:         43014
>Category:       kern
>Synopsis:       modstat could be more expandable
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 19 16:10:01 +0000 2010
>Last-Modified:  Fri Mar 19 16:30:02 +0000 2010
>Originator:     Antti Kantee
>Release:        
>Organization:
>Environment:
>Description:
For module class and source modstat(8) gets an integer from the
kernel and uses this to index a local string array to produce
a printable result.  This does not allow modstat to fully work
on later kernels which may have grown more classes and sources.
>How-To-Repeat:

>Fix:
Change modctl() to send printable values from the kernel (use problib?).

Fix before 6.0 would be nice.

>Audit-Trail:
From: Antti Kantee <pooka@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43014 CVS commit: src/sbin/modstat
Date: Fri, 19 Mar 2010 16:25:33 +0000

 Module Name:	src
 Committed By:	pooka
 Date:		Fri Mar 19 16:25:33 UTC 2010

 Modified Files:
 	src/sbin/modstat: main.c

 Log Message:
 Avoid known unknown if the kernel presents us with an unknown
 unknown for module class and/or source.

 related to PR kern/43014


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 src/sbin/modstat/main.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.