git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
drivers
/
acpi
/
debug.c
diff --git
a/drivers/acpi/debug.c
b/drivers/acpi/debug.c
index
9fb8cae
..
d947e2a
100644
(file)
--- a/
drivers/acpi/debug.c
+++ b/
drivers/acpi/debug.c
@@
-4,9
+4,12
@@
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/init.h>
+#include <linux/module.h>
+#include <linux/kernel.h>
#include <linux/moduleparam.h>
#include <asm/uaccess.h>
#include <acpi/acpi_drivers.h>
#include <linux/moduleparam.h>
#include <asm/uaccess.h>
#include <acpi/acpi_drivers.h>
+#include <acpi/acglobal.h>
#define _COMPONENT ACPI_SYSTEM_COMPONENT
ACPI_MODULE_NAME ("debug")
#define _COMPONENT ACPI_SYSTEM_COMPONENT
ACPI_MODULE_NAME ("debug")
@@
-87,7
+90,6
@@
const struct acpi_dlevel acpi_debug_levels[] =
ACPI_DEBUG_INIT(ACPI_LV_FULL_TABLES),
ACPI_DEBUG_INIT(ACPI_LV_EVENTS),
};
ACPI_DEBUG_INIT(ACPI_LV_FULL_TABLES),
ACPI_DEBUG_INIT(ACPI_LV_EVENTS),
};
-#define NUM_OF(v) ( sizeof(v)/sizeof(v[0]) )
static int
acpi_system_read_debug (
static int
acpi_system_read_debug (
@@
-100,7
+102,7
@@
acpi_system_read_debug (
{
char *p = page;
int size = 0;
{
char *p = page;
int size = 0;
-
int
i;
+
unsigned int
i;
if (off != 0)
goto end;
if (off != 0)
goto end;
@@
-109,7
+111,7
@@
acpi_system_read_debug (
switch ((unsigned long) data) {
case 0:
switch ((unsigned long) data) {
case 0:
- for (i = 0; i <
NUM_OF
(acpi_debug_layers); i++) {
+ for (i = 0; i <
ARRAY_SIZE
(acpi_debug_layers); i++) {
p += sprintf(p, "%-25s\t0x%08lX [%c]\n",
acpi_debug_layers[i].name,
acpi_debug_layers[i].value,
p += sprintf(p, "%-25s\t0x%08lX [%c]\n",
acpi_debug_layers[i].name,
acpi_debug_layers[i].value,
@@
-126,7
+128,7
@@
acpi_system_read_debug (
acpi_dbg_layer);
break;
case 1:
acpi_dbg_layer);
break;
case 1:
- for (i = 0; i <
NUM_OF
(acpi_debug_levels); i++) {
+ for (i = 0; i <
ARRAY_SIZE
(acpi_debug_levels); i++) {
p += sprintf(p, "%-25s\t0x%08lX [%c]\n",
acpi_debug_levels[i].name,
acpi_debug_levels[i].value,
p += sprintf(p, "%-25s\t0x%08lX [%c]\n",
acpi_debug_levels[i].name,
acpi_debug_levels[i].value,