diff --git a/acpi_call.c b/acpi_call.c index 3025d97..a5e5632 100644 --- a/acpi_call.c +++ b/acpi_call.c @@ -6,7 +6,7 @@ #include #include #include -#include +#include MODULE_LICENSE("GPL"); @@ -270,7 +270,11 @@ static int acpi_proc_write( struct file *filp, const char __user *buff, char *method; if (len > sizeof(input) - 1) { +#ifdef HAVE_PROC_CREATE + printk(KERN_ERR "acpi_call: Input too long! (%u)\n", len); +#else printk(KERN_ERR "acpi_call: Input too long! (%lu)\n", len); +#endif return -ENOSPC; }