From owner-freebsd-bugs Wed Oct 24 17:20:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1873A37B405 for ; Wed, 24 Oct 2001 17:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9P0K1662933; Wed, 24 Oct 2001 17:20:01 -0700 (PDT) (envelope-from gnats) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 8070937B403 for ; Wed, 24 Oct 2001 17:17:58 -0700 (PDT) Received: from hades.hell.gr (patr530-a120.otenet.gr [212.205.215.120]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f9P0Hs529799 for ; Thu, 25 Oct 2001 03:17:54 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f9P0Htq04307; Thu, 25 Oct 2001 03:17:55 +0300 (EEST) (envelope-from charon) Message-Id: <200110250017.f9P0Htq04307@hades.hell.gr> Date: Thu, 25 Oct 2001 03:17:55 +0300 (EEST) From: Giorgos Keramidas Reply-To: Giorgos Keramidas To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/31483: minor correction in error message printed by acpiconf.8 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31483 >Category: bin >Synopsis: minor correction in error message printed by acpiconf.8 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 24 17:20:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Giorgos Keramidas >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD hades.hell.gr 5.0-CURRENT FreeBSD 5.0-CURRENT #0: \ Mon Oct 22 00:57:31 EEST 2001 \ root@hades.hell.gr:/usr/obj/usr/src/sys/CHARON i386 >Description: On a non-acpi aware machine, trying to run acpiconf prints: # acpiconf -s1 acpiconf: No such file or directory The attached patch adds the filename of the file that acpiconf tried to open to the error message. # acpiconf -s1 acpiconf: /dev/acpi: No such file or directory >How-To-Repeat: >Fix: --- acpiconf.diff begins here --- Index: acpiconf.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/acpi/acpiconf/acpiconf.c,v retrieving revision 1.6 diff -2 -u -r1.6 acpiconf.c --- acpiconf.c 21 Jul 2001 21:51:44 -0000 1.6 +++ acpiconf.c 25 Oct 2001 00:09:41 -0000 @@ -50,5 +50,5 @@ fd = open(ACPIDEV, O_RDWR); if (fd == -1) { - err(1, NULL); + err(1, ACPIDEV); } if (ioctl(fd, enable, NULL) == -1) { @@ -67,5 +67,5 @@ fd = open(ACPIDEV, O_RDWR); if (fd == -1) { - err(1, NULL); + err(1, ACPIDEV); } if (ioctl(fd, ACPIIO_SETSLPSTATE, &sleep_type) == -1) { --- acpiconf.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message