Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion acpi_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <acpi/acpi.h>
#include <linux/acpi.h>

MODULE_LICENSE("GPL");

Expand Down Expand Up @@ -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;
}

Expand Down