freebsd-ports/sysutils/acpi_call/files/patch-acpi__call__util.c
Alexey Dokuchaev c6575e46c5 When ioctl() on /dev/acpi fails with `Device not configured' message,
suggest most probable cause of this to reduce number of questions on
the mailing lists; slightly improve port description text while here.
2016-11-23 16:40:10 +00:00

10 lines
280 B
C

--- acpi_call_util.c.orig 2011-11-07 05:35:10 UTC
+++ acpi_call_util.c
@@ -102,6 +102,7 @@ int main(int argc, char * argv[])
if (ioctl(fd, ACPIIO_CALL, &params) == -1)
{
perror("ioctl");
+ fprintf(stderr, "(Is `acpi_call.ko' kernel module loaded?)\n");
return 1;
}