NetBSD Problem Report #43680

From jruohone@gmail.com  Wed Jul 28 11:00:34 2010
Return-Path: <jruohone@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 72F6663BB29
	for <gnats-bugs@gnats.netbsd.org>; Wed, 28 Jul 2010 11:00:34 +0000 (UTC)
Message-Id: <20100728110027.82F4DF890@marx.bitnet>
Date: Wed, 28 Jul 2010 14:00:27 +0300 (EEST)
From: Jukka Ruohonen <jruohonen@iki.fi>
Sender: a b <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@gnats.NetBSD.org
Subject: acpibat(4) should strip invalid characters
X-Send-Pr-Version: 3.95

>Number:         43680
>Category:       port-i386
>Synopsis:       acpibat(4) should strip invalid characters
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 28 11:05:00 +0000 2010
>Originator:     Jukka Ruohonen
>Release:        NetBSD 5.1_RC2
>Organization:
-
>Environment:

>Description:

It seems that the strings coming from ACPI may contain all kinds of garbage.
From the dmesg of David H. Gutteridge's LG X110:

[...]
acpiec0 at acpi0 (EC, PNP0C09): io 0x62,0x66
acpiacad0 at acpi0 (ADP1, ACPI0003): ACPI AC Adapter
acpibat0 at acpi0 (BAT1, PNP0C0A-1): ACPI Battery
acpibat0: MSI Corp.
 LION
 rechargeable battery 
acpibat0: model number MS-N021
, serial number 

acpibat0: granularity: low->warn 0.001 Ah, warn->full 0.001 Ah
acpilid0 at acpi0 (LID0, PNP0C0D): ACPI Lid Switch
[...]

>How-To-Repeat:

...

>Fix:

If someone has a system like this, please do some pretty printing.
Maybe add a small utility function for this to acpi_util.c.

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.