Date: Thu, 25 Oct 2001 03:17:55 +0300 (EEST) From: Giorgos Keramidas <charon@labs.gr> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/31483: minor correction in error message printed by acpiconf.8 Message-ID: <200110250017.f9P0Htq04307@hades.hell.gr>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110250017.f9P0Htq04307>