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:    gutteridge
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 28 11:05:00 +0000 2010
>Last-Modified:  Tue Apr 26 00:52:48 +0000 2022
>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.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-i386-maintainer->gutteridge
Responsible-Changed-By: gutteridge@NetBSD.org
Responsible-Changed-When: Tue, 26 Apr 2022 00:52:48 +0000
Responsible-Changed-Why:
I can look at this. I still have the hardware (still an issue, last I checked).

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.